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
|
-- @treturn Position
|
||||||
function CLIENT:ClientPosition()
|
function CLIENT:ClientPosition()
|
||||||
--trace.f(self.ClassName)
|
--trace.f(self.ClassName)
|
||||||
local ClientData = Group.getByName( self.ClientName )
|
|
||||||
if ClientData and ClientData:isExist() then
|
ClientGroupUnit = self:ClientGroupUnit()
|
||||||
trace.i( self.ClassName, self.ClientName .. " : group found!" )
|
|
||||||
return ClientData:getUnits()[1]:getPosition()
|
if ClientGroupUnit then
|
||||||
else
|
if ClientGroupUnit:isExist() then
|
||||||
return nil
|
return ClientGroupUnit:getPosition()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Transport defines that the Client is a Transport.
|
--- Transport defines that the Client is a Transport.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user