From f4318044ef32216df03e06b4384962b40f0a2c7c Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 28 Apr 2012 23:35:19 +0100 Subject: [PATCH] And expose the published navaid range to Nasal, since we can. --- src/Scripting/NasalPositioned.cxx | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.39.5