Fix a bug in the water runway calculation: The area was made twice as long as needed.
This commit is contained in:
parent
a5d1035717
commit
e77e5d43d5
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ point_list WaterRunway::GetNodes()
|
||||||
// create a polygon for the outline and use it to calculate the point list
|
// create a polygon for the outline and use it to calculate the point list
|
||||||
int divs = (int)(length / 100.0);
|
int divs = (int)(length / 100.0);
|
||||||
TGPolygon area = gen_wgs84_area(GetStart(), GetEnd(),
|
TGPolygon area = gen_wgs84_area(GetStart(), GetEnd(),
|
||||||
length, 0, 0, width, heading, false);
|
0, 0, 0, width, heading, false);
|
||||||
Point3D pt, inc;
|
Point3D pt, inc;
|
||||||
|
|
||||||
for ( int i = 0; i < area.contour_size( 0 ); ++i ) {
|
for ( int i = 0; i < area.contour_size( 0 ); ++i ) {
|
||||||
|
|
Loading…
Reference in a new issue