mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
SET - fix for dead units
This commit is contained in:
parent
80f73f0bb1
commit
1f8b51fafe
@ -1152,8 +1152,10 @@ do -- SET_GROUP
|
|||||||
|
|
||||||
local NearestGroup = nil --Wrapper.Group#GROUP
|
local NearestGroup = nil --Wrapper.Group#GROUP
|
||||||
local ClosestDistance = nil
|
local ClosestDistance = nil
|
||||||
|
|
||||||
for ObjectID, ObjectData in pairs( self.Set ) do
|
local Set = self:GetAliveSet()
|
||||||
|
|
||||||
|
for ObjectID, ObjectData in pairs( Set ) do
|
||||||
if NearestGroup == nil then
|
if NearestGroup == nil then
|
||||||
NearestGroup = ObjectData
|
NearestGroup = ObjectData
|
||||||
ClosestDistance = PointVec2:DistanceFromPointVec2( ObjectData:GetCoordinate() )
|
ClosestDistance = PointVec2:DistanceFromPointVec2( ObjectData:GetCoordinate() )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user