Potential slight optimization to actor movement.

git-svn-id: https://svn.eduke32.com/eduke32@6125 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-04-24 04:35:22 +00:00
parent 76b83164a5
commit b2c8c45b41

View file

@ -492,7 +492,7 @@ int32_t A_MoveSpriteClipdist(int32_t spriteNum, vec3_t const * const change, uin
Bassert(newSectnum == pSprite->sectnum);
int doZUpdate = A_CheckNeedZUpdate(spriteNum, change->z, &newZ);
int const doZUpdate = change->z ? A_CheckNeedZUpdate(spriteNum, change->z, &newZ) : 0;
// Update sprite's z positions and (for TROR) maybe the sector number.
if (doZUpdate)