]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scripting/NasalSys.cxx
Clean-up: move autosave.xml loading code to proper method
[flightgear.git] / src / Scripting / NasalSys.cxx
index 3d5bddb538b6b8a728cf4b134bdb851c286cab9c..777d1eedea4082c80ee51f4ad25f99f29d022c31 100644 (file)
@@ -215,7 +215,7 @@ static naRef f_getprop(naContext c, naRef me, int argc, naRef* args)
         {
         double dv = p->getDoubleValue();
         if (osg::isNaN(dv)) {
-          SG_LOG(SG_GENERAL, SG_ALERT, "Nasal getprop: property " << p->getPath() << " is NaN");
+          SG_LOG(SG_NASAL, SG_ALERT, "Nasal getprop: property " << p->getPath() << " is NaN");
           return naNil();
         }
         
@@ -294,7 +294,7 @@ static naRef f_print(naContext c, naRef me, int argc, naRef* args)
         if(naIsNil(s)) continue;
         buf += naStr_data(s);
     }
-    SG_LOG(SG_GENERAL, SG_ALERT, buf);
+    SG_LOG(SG_NASAL, SG_ALERT, buf);
     return naNum(buf.length());
 }
 
@@ -768,6 +768,7 @@ static naRef f_navinfo(naContext c, naRef me, int argc, naRef* args)
             const_cast<char *>(nav->ident().c_str()), nav->ident().length()));
         HASHSET("name", 4, naStr_fromdata(naNewString(c),
             const_cast<char *>(nav->name().c_str()), nav->name().length()));
+        HASHSET("frequency", 9, naNum(nav->get_freq()));
         HASHSET("lat", 3, naNum(nav->get_lat()));
         HASHSET("lon", 3, naNum(nav->get_lon()));
         HASHSET("elevation", 9, naNum(nav->get_elev_ft() * SG_FEET_TO_METER));