mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Bug fix for 1.5 Client bug
This commit is contained in:
parent
e3b1d79693
commit
9ddaeb0bbb
@ -162,13 +162,16 @@ end
|
||||
-- @treturn Position
|
||||
function CLIENT:ClientPosition()
|
||||
--trace.f(self.ClassName)
|
||||
local ClientData = Group.getByName( self.ClientName )
|
||||
if ClientData and ClientData:isExist() then
|
||||
trace.i( self.ClassName, self.ClientName .. " : group found!" )
|
||||
return ClientData:getUnits()[1]:getPosition()
|
||||
else
|
||||
return nil
|
||||
|
||||
ClientGroupUnit = self:ClientGroupUnit()
|
||||
|
||||
if ClientGroupUnit then
|
||||
if ClientGroupUnit:isExist() then
|
||||
return ClientGroupUnit:getPosition()
|
||||
end
|
||||
end
|
||||
|
||||
return nil
|
||||
end
|
||||
|
||||
--- Transport defines that the Client is a Transport.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user