mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
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:
parent
470e9afe22
commit
aebc2632f3
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue