Fix stupid bug in r7409

git-svn-id: https://svn.eduke32.com/eduke32@7461 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-03-30 19:36:10 +00:00 committed by Christoph Oelckers
parent af3fb71b19
commit b62fa1fa5c

View file

@ -487,7 +487,8 @@ int32_t A_MoveSpriteClipdist(int32_t spriteNum, vec3_t const * const change, uin
// Handle horizontal movement first.
int returnValue;
int const diffZ = spriteheightofs(spriteNum, NULL, 0);
int32_t diffZ;
spriteheightofs(spriteNum, &diffZ, 0);
int newZ = pSprite->z - diffZ;
pSprite->z -= diffZ >> 1;