mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-17 12:50:22 +00:00
@@ -1571,9 +1571,8 @@ do -- SET_GROUP
|
|||||||
return Count
|
return Count
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Iterate the SET_GROUP and count how many GROUPS are alive.
|
--- Iterate the SET_GROUP and count how many GROUPs and UNITs are alive.
|
||||||
-- @param #SET_GROUP self
|
-- @param #SET_GROUP self
|
||||||
-- @param Core.Zone#ZONE ZoneObject The Zone to be tested for.
|
|
||||||
-- @return #number The number of GROUPs completely in the Zone
|
-- @return #number The number of GROUPs completely in the Zone
|
||||||
-- @return #number The number of UNITS alive.
|
-- @return #number The number of UNITS alive.
|
||||||
function SET_GROUP:CountAlive()
|
function SET_GROUP:CountAlive()
|
||||||
|
|||||||
@@ -541,7 +541,8 @@ do -- DETECTION_BASE
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
self.DetectionCount = self.DetectionSet:Count()
|
-- Count alive(!) groups only. Solves issue #1173 https://github.com/FlightControl-Master/MOOSE/issues/1173
|
||||||
|
self.DetectionCount = self.DetectionSet:CountAlive()
|
||||||
|
|
||||||
self.DetectionSet:ForEachGroupAlive(
|
self.DetectionSet:ForEachGroupAlive(
|
||||||
function( DetectionGroup )
|
function( DetectionGroup )
|
||||||
|
|||||||
Reference in New Issue
Block a user