Fix player bouncing on sprite bridges

This commit is contained in:
nukeykt 2019-11-09 00:45:34 +09:00 committed by Christoph Oelckers
parent ed81a1c3fe
commit d7b9af8b89

View file

@ -381,7 +381,7 @@ int movespritez(short nSprite, int z, int height, int flordist, int clipdist)
// Path A
short nFloorSprite = lohit & 0x3FFF;
if (pSprite->statnum == 100 && sprite[nFloorSprite].statnum != 0 || sprite[nFloorSprite].statnum < 100)
if (pSprite->statnum == 100 && sprite[nFloorSprite].statnum != 0 && sprite[nFloorSprite].statnum < 100)
{
short nDamage = (z >> 9);
if (nDamage)