mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 12:32:34 +00:00
- 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:
parent
81487f4a69
commit
90b4480bcd
1 changed files with 2 additions and 2 deletions
|
@ -3504,7 +3504,7 @@ void AActor::Tick ()
|
|||
int newtics;
|
||||
do
|
||||
{
|
||||
newtics = tics--;
|
||||
newtics = --tics;
|
||||
|
||||
// [RH] Use tics <= 0 instead of == 0 so that spawnstates
|
||||
// of 0 tics work as expected.
|
||||
|
@ -3520,7 +3520,7 @@ void AActor::Tick ()
|
|||
return; // freed itself
|
||||
}
|
||||
}
|
||||
while (newtics == 0);
|
||||
while (newtics < 0 && tics != -1);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue