diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index be73f09517..70b1a7d13a 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -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 {