From 736485ab76c71b31f858380c5aa5919784ea5ae3 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 30 Jun 2020 17:09:02 +0100 Subject: [PATCH] Expose a Nasal FP method under a better name Match the C++ name for this, not sure why I ever though pathGeod was a good name for this. --- src/Scripting/NasalFlightPlan.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Scripting/NasalFlightPlan.cxx b/src/Scripting/NasalFlightPlan.cxx index 22c6d2994..b86734bcf 100644 --- a/src/Scripting/NasalFlightPlan.cxx +++ b/src/Scripting/NasalFlightPlan.cxx @@ -2096,7 +2096,11 @@ naRef initNasalFlightPlan(naRef globals, naContext c) hashset(c, flightplanPrototype, "cleanPlan", naNewFunc(c, naNewCCode(c, f_flightplan_clearPlan))); hashset(c, flightplanPrototype, "clearWPType", naNewFunc(c, naNewCCode(c, f_flightplan_clearWPType))); hashset(c, flightplanPrototype, "clone", naNewFunc(c, naNewCCode(c, f_flightplan_clone))); + hashset(c, flightplanPrototype, "pathGeod", naNewFunc(c, naNewCCode(c, f_flightplan_pathGeod))); + // this is a clearer name than pathGeod + hashset(c, flightplanPrototype, "pointAlongRoute", naNewFunc(c, naNewCCode(c, f_flightplan_pathGeod))); + hashset(c, flightplanPrototype, "finish", naNewFunc(c, naNewCCode(c, f_flightplan_finish))); hashset(c, flightplanPrototype, "activate", naNewFunc(c, naNewCCode(c, f_flightplan_activate))); hashset(c, flightplanPrototype, "indexOfWP", naNewFunc(c, naNewCCode(c, f_flightplan_indexOfWp)));