From 8b7c493d41113ec4a103e46c13206e09cfd6d6d9 Mon Sep 17 00:00:00 2001 From: mfranz Date: Tue, 2 Oct 2007 16:03:27 +0000 Subject: [PATCH] forgot to consider the Liberia--Burma--U.S.A problem --- src/Scripting/NasalSys.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 29b13e3e1..1c75353ad 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -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(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 -- 2.39.5