1
0
Fork 0

Expose waypoint heading/course to Nasal.

This commit is contained in:
James Turner 2014-12-21 09:53:32 +03:00
parent aa3333cd31
commit a1169e4f75

View file

@ -443,6 +443,8 @@ static const char* waypointCommonGetMember(naContext c, Waypt* wpt, const char*
} else { } else {
*out = stringToNasal(c, wpt->flag(WPT_OVERFLIGHT) ? "flyOver" : "flyBy"); *out = stringToNasal(c, wpt->flag(WPT_OVERFLIGHT) ? "flyOver" : "flyBy");
} }
} else if (!strcmp(fieldName, "heading_course")) {
*out = naNum(wpt->headingRadialDeg());
} else { } else {
return NULL; // member not found return NULL; // member not found
} }