From 07b71b1139e8f49275f3991c228a269ca50b96ee Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 24 Aug 2008 23:24:14 +0000 Subject: [PATCH] git-svn-id: https://svn.eduke32.com/eduke32@1023 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 2 +- polymer/eduke32/source/jmact/control.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index ab8cb8b6e..c1e38c9bb 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -7432,7 +7432,7 @@ PALONLY: spriteext[tsprite[j].owner].tspr = NULL; } } - while (--j > 0); + while (j--); if (j < 0) return; diff --git a/polymer/eduke32/source/jmact/control.c b/polymer/eduke32/source/jmact/control.c index 2e3562042..5687fe01b 100644 --- a/polymer/eduke32/source/jmact/control.c +++ b/polymer/eduke32/source/jmact/control.c @@ -692,7 +692,7 @@ void CONTROL_AxisFunctionState(int32 *p1) if (j != AXISUNDEFINED) p1[j] = 1; } - while (--i >= 0); + while (i--); } if (CONTROL_NumJoyAxes) @@ -711,7 +711,7 @@ void CONTROL_AxisFunctionState(int32 *p1) if (j != AXISUNDEFINED) p1[j] = 1; } - while (--i >= 0); + while (i--); } } @@ -744,7 +744,7 @@ void CONTROL_ButtonFunctionState(int32 *p1) } mousebind[i].laststate = CONTROL_MouseButtonState[i]; } - while (--i >= 0); + while (i--); } if (CONTROL_NumJoyButtons) @@ -761,7 +761,7 @@ void CONTROL_ButtonFunctionState(int32 *p1) if (j != KEYUNDEFINED) p1[j] |= CONTROL_JoyButtonState[i]; } - while (--i >= 0); + while (i--); } } /*