From 8e8adb7e3755e69760ce221a5e00511e020808c7 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Fri, 26 Sep 2008 09:48:35 +0000 Subject: [PATCH] Fixes a bug where wall or floor sprites in elevator sectors would jitter vertically after the elevator had stopped. git-svn-id: https://svn.eduke32.com/eduke32@1078 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/sector.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/polymer/eduke32/source/sector.c b/polymer/eduke32/source/sector.c index 82010f155..7416a059e 100644 --- a/polymer/eduke32/source/sector.c +++ b/polymer/eduke32/source/sector.c @@ -284,6 +284,14 @@ void doanimations(void) { stopinterpolation(animateptr[i]); + // This fixes a bug where wall or floor sprites contained in + // elevator sectors (ST 16-19) would jitter vertically after the + // elevator had stopped. + if (animateptr[i] == §or[animatesect[i]].floorz) + for (j=headspritesect[dasect];j>=0;j=nextspritesect[j]) + if (sprite[j].statnum != 3) + hittype[j].bposz = sprite[j].z; + animatecnt--; animateptr[i] = animateptr[animatecnt]; animategoal[i] = animategoal[animatecnt];