Bail out of A_MoveSpriteClipdist() early if passed no velocity

git-svn-id: https://svn.eduke32.com/eduke32@8546 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2020-01-29 11:36:24 +00:00 committed by Christoph Oelckers
parent 470e9afe22
commit aebc2632f3

View file

@ -493,6 +493,9 @@ int32_t A_MoveSpriteClipdist(int32_t spriteNum, vec3_t const * const change, uin
setsprite(spriteNum, &pSprite->pos);
if (!(change->x|change->y|change->z))
return 0;
clipDist = A_GetClipdist(spriteNum, clipDist);
int16_t newSectnum = pSprite->sectnum;