mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Couple of fixes for Client bug in 1.5
This commit is contained in:
parent
61d51fe9a5
commit
357dd87c03
@ -175,12 +175,12 @@ trace.f(self.ClassName)
|
|||||||
local AlivePlayers = ''
|
local AlivePlayers = ''
|
||||||
for ClientID, Client in pairs( self._Clients ) do
|
for ClientID, Client in pairs( self._Clients ) do
|
||||||
if Client:ClientGroup() then
|
if Client:ClientGroup() then
|
||||||
if Client:ClientGroup():getUnit(1) then
|
if Client:ClientGroupUnit() then
|
||||||
if Client:ClientGroup():getUnit(1):getLife() > 0.0 then
|
if Client:ClientGroupUnit():getLife() > 0.0 then
|
||||||
if AlivePlayers == '' then
|
if AlivePlayers == '' then
|
||||||
AlivePlayers = ' Players: ' .. Client:ClientGroup():getUnit(1):getPlayerName()
|
AlivePlayers = ' Players: ' .. Client:ClientGroupUnit():getPlayerName()
|
||||||
else
|
else
|
||||||
AlivePlayers = AlivePlayers .. ' / ' .. Client:ClientGroup():getUnit(1):getPlayerName()
|
AlivePlayers = AlivePlayers .. ' / ' .. Client:ClientGroupUnit():getPlayerName()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -505,7 +505,7 @@ trace.scheduled("MISSIONSCHEDULER","Scheduler")
|
|||||||
if Mission.GoalFunction ~= nil then
|
if Mission.GoalFunction ~= nil then
|
||||||
Mission.GoalFunction( Mission, Client )
|
Mission.GoalFunction( Mission, Client )
|
||||||
end
|
end
|
||||||
_Database:_AddMissionTaskScore( Client:ClientGroup():getUnit(1), Mission.Name, 25 )
|
_Database:_AddMissionTaskScore( Client:ClientGroupUnit(), Mission.Name, 25 )
|
||||||
|
|
||||||
-- if not Mission:IsCompleted() then
|
-- if not Mission:IsCompleted() then
|
||||||
-- end
|
-- end
|
||||||
|
|||||||
@ -233,7 +233,7 @@ trace.f(self.ClassName)
|
|||||||
|
|
||||||
local RouteMessage = "Fly to "
|
local RouteMessage = "Fly to "
|
||||||
for LandingZoneID, LandingZoneName in pairs( Task.LandingZones.LandingZoneNames ) do
|
for LandingZoneID, LandingZoneName in pairs( Task.LandingZones.LandingZoneNames ) do
|
||||||
RouteMessage = RouteMessage .. LandingZoneName .. ' at ' .. routines.getBRStringZone( { zone = LandingZoneName, ref = Client:ClientGroup():getUnit(1):getPoint(), true, true } ) .. ' km. '
|
RouteMessage = RouteMessage .. LandingZoneName .. ' at ' .. routines.getBRStringZone( { zone = LandingZoneName, ref = Client:ClientGroupUnit():getPoint(), true, true } ) .. ' km. '
|
||||||
end
|
end
|
||||||
Client:Message( RouteMessage, self.MSG.TIME, Mission.Name .. "/StageRoute", "Co-Pilot: Route", 20 )
|
Client:Message( RouteMessage, self.MSG.TIME, Mission.Name .. "/StageRoute", "Co-Pilot: Route", 20 )
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user