From 56520092c3b8dba3df490edf37570499c37b2c56 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Wed, 8 Apr 2026 15:17:54 +0200 Subject: [PATCH] #EASYGCICAP - Fix restart function to restart, not start, the Airwings, and call Status itself afterwards --- Moose Development/Moose/Functional/Detection.lua | 6 +++--- Moose Development/Moose/Ops/EasyGCICAP.lua | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Moose Development/Moose/Functional/Detection.lua b/Moose Development/Moose/Functional/Detection.lua index 0e12a0892..e3fb48394 100644 --- a/Moose Development/Moose/Functional/Detection.lua +++ b/Moose Development/Moose/Functional/Detection.lua @@ -1848,7 +1848,7 @@ do -- DETECTION_BASE return self end - --- Validate if the detected item is locked. + --- Validate if the detected item is locked (not in the radar sense, though!). -- @param #DETECTION_BASE self -- @param #DETECTION_BASE.DetectedItem DetectedItem The DetectedItem. -- @return #boolean @@ -1858,7 +1858,7 @@ do -- DETECTION_BASE end - --- Lock a detected item. + --- Lock a detected item (not in the radar sense, though!). -- @param #DETECTION_BASE self -- @param #DETECTION_BASE.DetectedItem DetectedItem The DetectedItem. -- @return #DETECTION_BASE @@ -1869,7 +1869,7 @@ do -- DETECTION_BASE return self end - --- Unlock a detected item. + --- Unlock a detected item (not in the radar sense, though!). -- @param #DETECTION_BASE self -- @param #DETECTION_BASE.DetectedItem DetectedItem The DetectedItem. -- @return #DETECTION_BASE diff --git a/Moose Development/Moose/Ops/EasyGCICAP.lua b/Moose Development/Moose/Ops/EasyGCICAP.lua index 4cbdb9ee1..b1aa9ed43 100644 --- a/Moose Development/Moose/Ops/EasyGCICAP.lua +++ b/Moose Development/Moose/Ops/EasyGCICAP.lua @@ -1835,9 +1835,10 @@ function EASYGCICAP:onafterRestart(From,Event,To) -- self.wings[Airbasename] = { CAP_Wing, AIRBASE:FindByName(Airbasename):GetZone(), Airbasename } for _,_wing in pairs(self.wings or {}) do for _,_aw in pairs(_wing) do - _wing[1]:Start() + _wing[1]:Restart() end end end + self:__Status(5) return self end