1
0
Fork 0

forgot to consider the Liberia--Burma--U.S.A problem

This commit is contained in:
mfranz 2007-10-02 16:03:27 +00:00
parent f65dbf5538
commit 8b7c493d41

View file

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