mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-11 10:35:55 +00:00
945d1ba2e6
The game currently has several infinite loops, and the stack trace is
always a variation on the same pattern that units go through IDLE as a
default state, immediately try another order (possibly entering a new
state), failing, and goes back to IDLE.
IDLE.Timer is a general workaround for this issue. It wastes a turn
every time a unit goes idle, so should a better solution be found for
the general problem of infinite loops in UnitAI, it should be removed.
This revert 8bab09d37c which was intended as a safety net, but couldn't
protect againt infinite loops between two different states.
Fixes #5460
Differential Revision: https://code.wildfiregames.com/D2041
This was SVN commit r22475.