mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fixed respawn bug in AI_BALANCER + Scheduler bug
AI_BALANCER respawns back the AI. Bug was in the FSM. In a transition, when states are the same, the events SHOULD execute. Added spawn delay interval option API SetSpawnInterval(). Bug that prevented AI_BALANCER to start if multiple AI_BALANCERs is also fixed. Fixed bug in scheduler dispatcher. Multiple schedules for the same scheduler work now too!
This commit is contained in:
@@ -582,10 +582,10 @@ do -- FSM
|
||||
|
||||
if execute then
|
||||
-- only execute the call if the From state is not equal to the To state! Otherwise this function should never execute!
|
||||
if from ~= to then
|
||||
--if from ~= to then
|
||||
self:_call_handler("onenter" .. to, params)
|
||||
self:_call_handler("OnEnter" .. to, params)
|
||||
end
|
||||
--end
|
||||
|
||||
self:_call_handler("onafter" .. EventName, params)
|
||||
self:_call_handler("OnAfter" .. EventName, params)
|
||||
|
||||
Reference in New Issue
Block a user