mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update AI_A2A_Patrol.lua
This commit is contained in:
@@ -296,11 +296,7 @@ function AI_A2A_PATROL.PatrolRoute( AIPatrol, Fsm )
|
|||||||
AIPatrol:F( { "AI_A2A_PATROL.PatrolRoute:", AIPatrol:GetName() } )
|
AIPatrol:F( { "AI_A2A_PATROL.PatrolRoute:", AIPatrol:GetName() } )
|
||||||
|
|
||||||
if AIPatrol and AIPatrol:IsAlive() then
|
if AIPatrol and AIPatrol:IsAlive() then
|
||||||
if Fsm then
|
Fsm:Route()
|
||||||
Fsm:Route()
|
|
||||||
else
|
|
||||||
AIPatrol:E("WARNING: FSM in AI_A2A_PATROL.PatrolRoute is nil!")
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -313,7 +309,6 @@ end
|
|||||||
-- @param #string Event The Event string.
|
-- @param #string Event The Event string.
|
||||||
-- @param #string To The To State string.
|
-- @param #string To The To State string.
|
||||||
function AI_A2A_PATROL:onafterRoute( AIPatrol, From, Event, To )
|
function AI_A2A_PATROL:onafterRoute( AIPatrol, From, Event, To )
|
||||||
|
|
||||||
self:F2()
|
self:F2()
|
||||||
|
|
||||||
-- When RTB, don't allow anymore the routing.
|
-- When RTB, don't allow anymore the routing.
|
||||||
|
|||||||
Reference in New Issue
Block a user