mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
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:
parent
76b83164a5
commit
b2c8c45b41
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue