]> git.mxchange.org Git - flightgear.git/commitdiff
And expose the published navaid range to Nasal, since we can.
authorJames Turner <zakalawe@mac.com>
Sat, 28 Apr 2012 22:35:19 +0000 (23:35 +0100)
committerJames Turner <zakalawe@mac.com>
Sat, 28 Apr 2012 22:35:19 +0000 (23:35 +0100)
src/Scripting/NasalPositioned.cxx

index 9127e149cbc87974ce3e7f2a348973d3cdf7b2af..8842c6899d46eda6f581149b6c56ca9dea6d6665 100644 (file)
@@ -294,6 +294,8 @@ static const char* navaidGhostGetMember(naContext c, void* g, naRef field, naRef
     *out = stringToNasal(c, nav->nameForType(nav->type()));
   } else if (!strcmp(fieldName, "frequency")) {
     *out = naNum(nav->get_freq()); 
+  } else if (!strcmp(fieldName, "range_nm")) {
+    *out = naNum(nav->get_range()); 
   } else if (!strcmp(fieldName, "course")) {
     if ((nav->type() == FGPositioned::ILS) || (nav->type() == FGPositioned::LOC)) {
       double radial = nav->get_multiuse();