From 788f17323cca15f3ce22ab48dbc57e4b10d80977 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 19 Oct 2009 17:17:06 +0000 Subject: [PATCH] - fixed: Setting the first state's duration of a fast projectile to 0 caused an underflow and blocked all further state changes. SVN r1929 (trunk) --- docs/rh-log.txt | 4 ++++ src/g_shared/a_fastprojectile.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 44f80a49c..39c76062e 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,3 +1,7 @@ +October 19, 2009 (Changes by Graf Zahl) +- fixed: Setting the first state's duration of a fast projectile to 0 caused + an underflow and blocked all further state changes. + October 18, 2009 (Changes by Graf Zahl) - fixed: FMultiPatchTexture::MakeTexture was missing a range check for the special colormap index. diff --git a/src/g_shared/a_fastprojectile.cpp b/src/g_shared/a_fastprojectile.cpp index d3924a17e..fe97e6a53 100644 --- a/src/g_shared/a_fastprojectile.cpp +++ b/src/g_shared/a_fastprojectile.cpp @@ -99,7 +99,7 @@ void AFastProjectile::Tick () // Advance the state if (tics != -1) { - tics--; + if (tics > 0) tics--; while (!tics) { if (!SetState (state->GetNextState ()))