- Exhumed: Refined sector movement code so that pickups get always moved even when not touching the floor.

... because it seems to be inevitable that games have to exploit some implementation shortcomings...
This commit is contained in:
Christoph Oelckers 2021-01-16 23:42:34 +01:00
parent c342594691
commit 042795612e

View file

@ -692,7 +692,7 @@ void MoveSectorSprites(int nSector, int z)
while ((nSprite = it.NextIndex()) >= 0) while ((nSprite = it.NextIndex()) >= 0)
{ {
int z = sprite[nSprite].z; int z = sprite[nSprite].z;
if (sprite[nSprite].statnum != 200 && z >= minz && z <= maxz) if ((sprite[nSprite].statnum != 200 && z >= minz && z <= maxz) || sprite[nSprite].statnum >= 900)
{ {
sprite[nSprite].z = newz; sprite[nSprite].z = newz;
} }