1
0
Fork 0

Fix a bug in the water runway calculation: The area was made twice as long as needed.

This commit is contained in:
Christian Schmitt 2012-11-01 11:02:24 +01:00
parent a5d1035717
commit e77e5d43d5

View file

@ -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 ) {