1
0
forked from 0ad/0ad
0ad/binaries
wraitii 945d1ba2e6 Fix IDLE-related infinite loops by moving stateful calls to IDLE.timer.
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.
2019-07-14 11:40:27 +00:00
..
data Fix IDLE-related infinite loops by moving stateful calls to IDLE.timer. 2019-07-14 11:40:27 +00:00
logs Updates logs readme with link to Trac, to replace confusing outdated info 2012-08-02 19:41:50 +00:00
system Adds a possibility to disable saving of replay in autostart mode. 2019-07-03 21:36:40 +00:00