From a3d56b6d1bbdb7c2435f38608d4d458f46c9264a Mon Sep 17 00:00:00 2001 From: Thomas <72444570+Applevangelist@users.noreply.github.com> Date: Mon, 22 Jan 2024 06:32:42 +0100 Subject: [PATCH 1/2] Update Pathline.lua (#2097) (#2098) Small fixes --- Moose Development/Moose/Core/Pathline.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Moose Development/Moose/Core/Pathline.lua b/Moose Development/Moose/Core/Pathline.lua index 7cbb48552..8fdda2bc6 100644 --- a/Moose Development/Moose/Core/Pathline.lua +++ b/Moose Development/Moose/Core/Pathline.lua @@ -73,7 +73,7 @@ PATHLINE = { --- PATHLINE class version. -- @field #string version -PATHLINE.version="0.1.0" +PATHLINE.version="0.1.1" ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- TODO list @@ -237,13 +237,14 @@ end --- Get COORDINATES of pathline. Note that COORDINATE objects are created when calling this function. That does involve deep copy calls and can have an impact on performance if done too often. -- @param #PATHLINE self -- @return List of COORDINATES points. -function PATHLINE:GetCoordinats() +function PATHLINE:GetCoordinates() local vecs={} for _,_point in pairs(self.points) do local point=_point --#PATHLINE.Point local coord=COORDINATE:NewFromVec3(point.vec3) + table.insert(vecs,coord) end return vecs @@ -262,7 +263,7 @@ function PATHLINE:GetPointFromIndex(n) local point=nil --#PATHLINE.Point if n>=1 and n<=N then - point=self.point[n] + point=self.points[n] else self:E(self.lid..string.format("ERROR: No point in pathline for N=%s", tostring(n))) end @@ -367,4 +368,4 @@ end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- \ No newline at end of file +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- From 1b4e170271b6b2dcf304a8eaa0ad0e1d7e2ba17a Mon Sep 17 00:00:00 2001 From: Frank Date: Mon, 22 Jan 2024 21:49:31 +0100 Subject: [PATCH 2/2] Update FlightGroup.lua - Added menu update after cruise. (Fixes launches from aircraft carriers.) --- Moose Development/Moose/Ops/FlightGroup.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Ops/FlightGroup.lua b/Moose Development/Moose/Ops/FlightGroup.lua index 1be7c0dbe..05145caac 100644 --- a/Moose Development/Moose/Ops/FlightGroup.lua +++ b/Moose Development/Moose/Ops/FlightGroup.lua @@ -2333,7 +2333,8 @@ function FLIGHTGROUP:onafterCruise(From, Event, To) -- CLIENT --- - --self:_UpdateMenu(0.1) + -- Had this commented out (forgot why, probably because it was not necessary) but re-enabling it because of carrier launch. + self:_UpdateMenu(0.1) end