1
0
Fork 0

And expose the published navaid range to Nasal, since we can.

This commit is contained in:
James Turner 2012-04-28 23:35:19 +01:00
parent 78afdb3c22
commit f4318044ef

View 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();