mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
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:
parent
103cc529d6
commit
8e8adb7e37
1 changed files with 8 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue