[rwy_simple] Maintenance
This commit is contained in:
parent
cbcbb8c8f6
commit
f98b5cd482
1 changed files with 40 additions and 42 deletions
|
@ -23,10 +23,9 @@
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
|
|
||||||
#include "runway.hxx"
|
|
||||||
#include "debug.hxx"
|
#include "debug.hxx"
|
||||||
|
#include "runway.hxx"
|
||||||
|
|
||||||
using std::string;
|
|
||||||
|
|
||||||
// generate a simple runway
|
// generate a simple runway
|
||||||
void Runway::gen_simple_rwy(tgpolygon_list& rwy_polys,
|
void Runway::gen_simple_rwy(tgpolygon_list& rwy_polys,
|
||||||
|
@ -35,7 +34,7 @@ void Runway::gen_simple_rwy( tgpolygon_list& rwy_polys,
|
||||||
{
|
{
|
||||||
tgContour runway = gen_runway_w_mid(0.0, 0.0);
|
tgContour runway = gen_runway_w_mid(0.0, 0.0);
|
||||||
tgPolygon runway_half;
|
tgPolygon runway_half;
|
||||||
std::string empty = "";
|
std::string empty{};
|
||||||
|
|
||||||
for (int rwhalf = 0; rwhalf < 2; ++rwhalf) {
|
for (int rwhalf = 0; rwhalf < 2; ++rwhalf) {
|
||||||
double length = rwy.length / 2.0;
|
double length = rwy.length / 2.0;
|
||||||
|
@ -51,8 +50,7 @@ void Runway::gen_simple_rwy( tgpolygon_list& rwy_polys,
|
||||||
runway_half.AddNode(0, runway.GetNode(4));
|
runway_half.AddNode(0, runway.GetNode(4));
|
||||||
runway_half.AddNode(0, runway.GetNode(5));
|
runway_half.AddNode(0, runway.GetNode(5));
|
||||||
runway_half.AddNode(0, runway.GetNode(2));
|
runway_half.AddNode(0, runway.GetNode(2));
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
heading = rwy.heading;
|
heading = rwy.heading;
|
||||||
|
|
||||||
//Create the second runway half from apt.dat
|
//Create the second runway half from apt.dat
|
||||||
|
|
Loading…
Add table
Reference in a new issue