From 1ba3e3aef2de789ac07da9a474090d6fb75d9f0f Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 24 Aug 2008 22:44:37 +0000 Subject: [PATCH] git-svn-id: https://svn.eduke32.com/eduke32@1022 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/actors.c | 2 +- polymer/eduke32/source/gameexec.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/polymer/eduke32/source/actors.c b/polymer/eduke32/source/actors.c index 15da80419..3ed67d167 100644 --- a/polymer/eduke32/source/actors.c +++ b/polymer/eduke32/source/actors.c @@ -7596,7 +7596,7 @@ void moveobjects(void) } while (i >= 0); } - while (--k); + while (k--); } doanimations(); diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index c2348e153..85f9ed821 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -4988,8 +4988,7 @@ static int parse(void) case CON_FALL: insptr++; - g_sp->xoffset = 0; - g_sp->yoffset = 0; + g_sp->xoffset = g_sp->yoffset = 0; j = gc; @@ -5006,8 +5005,7 @@ static int parse(void) if (g_sp->z < (hittype[g_i].floorz-FOURSLEIGHT)) { - g_sp->zvel += j; - g_sp->z+=g_sp->zvel; + g_sp->z += g_sp->zvel += j; if (g_sp->zvel > 6144) g_sp->zvel = 6144;