From 90b4480bcd6a6a15dba047f51b2e8afd90d8b51b Mon Sep 17 00:00:00 2001 From: Braden Obrzut Date: Sun, 28 Apr 2013 18:55:55 +0000 Subject: [PATCH] - 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) --- src/p_mobj.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {