- Try that last fix again. This time check to see if we enter an infinite duration state and break out of the loop.

SVN r4233 (trunk)
This commit is contained in:
Braden Obrzut 2013-04-28 18:55:55 +00:00
parent 81487f4a69
commit 90b4480bcd

View file

@ -3504,7 +3504,7 @@ void AActor::Tick ()
int newtics; int newtics;
do do
{ {
newtics = tics--; newtics = --tics;
// [RH] Use tics <= 0 instead of == 0 so that spawnstates // [RH] Use tics <= 0 instead of == 0 so that spawnstates
// of 0 tics work as expected. // of 0 tics work as expected.
@ -3520,7 +3520,7 @@ void AActor::Tick ()
return; // freed itself return; // freed itself
} }
} }
while (newtics == 0); while (newtics < 0 && tics != -1);
} }
else else
{ {