mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
ba2bfd5599
@ -2107,16 +2107,19 @@ do
|
|||||||
|
|
||||||
if group and group:IsAlive() and (Coalitions==nil or UTILS.IsAnyInTable(Coalitions, group:GetCoalition())) then
|
if group and group:IsAlive() and (Coalitions==nil or UTILS.IsAnyInTable(Coalitions, group:GetCoalition())) then
|
||||||
|
|
||||||
local coord=group:GetCoord()
|
local coord=group:GetCoordinate()
|
||||||
|
|
||||||
-- Distance between ref. coordinate and group coordinate.
|
local d
|
||||||
local d=UTILS.VecDist3D(Coordinate, coord)
|
|
||||||
|
if coord ~= nil then
|
||||||
if d<dmin then
|
-- Distance between ref. coordinate and group coordinate.
|
||||||
dmin=d
|
d=UTILS.VecDist3D(Coordinate, coord)
|
||||||
gmin=group
|
|
||||||
|
if d<dmin then
|
||||||
|
dmin=d
|
||||||
|
gmin=group
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user