]> git.mxchange.org Git - flightgear.git/commitdiff
forgot to consider the Liberia--Burma--U.S.A problem
authormfranz <mfranz>
Tue, 2 Oct 2007 16:03:27 +0000 (16:03 +0000)
committermfranz <mfranz>
Tue, 2 Oct 2007 16:03:27 +0000 (16:03 +0000)
src/Scripting/NasalSys.cxx

index 29b13e3e12c2ec1f20a50308f82b7f30b29b9a8d..1c75353ad663a45862018d00e8d7673033f4595b 100644 (file)
@@ -527,8 +527,8 @@ static naRef f_airportinfo(naContext c, naRef me, int argc, naRef* args)
             HASHSET("lat", 3, naNum(rwy._lat));
             HASHSET("lon", 3, naNum(rwy._lon));
             HASHSET("heading", 7, naNum(rwy._heading));
-            HASHSET("length", 6, naNum(rwy._length));
-            HASHSET("width", 5, naNum(rwy._width));
+            HASHSET("length", 6, naNum(rwy._length * SG_FEET_TO_METER));
+            HASHSET("width", 5, naNum(rwy._width * SG_FEET_TO_METER));
 #undef HASHSET
 
             naRef no = naStr_fromdata(naNewString(c),
@@ -547,7 +547,7 @@ static naRef f_airportinfo(naContext c, naRef me, int argc, naRef* args)
             const_cast<char *>(name.c_str()), name.length()));
     HASHSET("lat", 3, naNum(apt->getLatitude()));
     HASHSET("lon", 3, naNum(apt->getLongitude()));
-    HASHSET("elevation", 9, naNum(apt->getElevation()));
+    HASHSET("elevation", 9, naNum(apt->getElevation() * SG_FEET_TO_METER));
     HASHSET("has_metar", 9, naNum(apt->getMetar()));
     HASHSET("runways", 7, rwys);
 #undef HASHSET