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
This commit is contained in:
helixhorned 2008-09-26 09:48:35 +00:00
parent 103cc529d6
commit 8e8adb7e37

View file

@ -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] == &sector[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];