From: James Turner Date: Sat, 28 Apr 2012 22:35:19 +0000 (+0100) Subject: And expose the published navaid range to Nasal, since we can. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f4318044ef32216df03e06b4384962b40f0a2c7c;p=flightgear.git And expose the published navaid range to Nasal, since we can. --- diff --git a/src/Scripting/NasalPositioned.cxx b/src/Scripting/NasalPositioned.cxx index 9127e149c..8842c6899 100644 --- a/src/Scripting/NasalPositioned.cxx +++ b/src/Scripting/NasalPositioned.cxx @@ -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();