- 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)
This commit is contained in:
Christoph Oelckers 2009-10-19 17:17:06 +00:00
parent 8390184839
commit 788f17323c
2 changed files with 5 additions and 1 deletions

View file

@ -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) October 18, 2009 (Changes by Graf Zahl)
- fixed: FMultiPatchTexture::MakeTexture was missing a range check for the - fixed: FMultiPatchTexture::MakeTexture was missing a range check for the
special colormap index. special colormap index.

View file

@ -99,7 +99,7 @@ void AFastProjectile::Tick ()
// Advance the state // Advance the state
if (tics != -1) if (tics != -1)
{ {
tics--; if (tics > 0) tics--;
while (!tics) while (!tics)
{ {
if (!SetState (state->GetNextState ())) if (!SetState (state->GetNextState ()))