mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- don't use labs.
This commit is contained in:
parent
139969d017
commit
e20b2ab872
1 changed files with 1 additions and 1 deletions
|
@ -4633,7 +4633,7 @@ int move_actor(DSWActor* actor, int xchange, int ychange, int zchange)
|
|||
// try and determine whether you moved > lo_step in the z direction
|
||||
if (!(actor->user.Flags & (SPR_NO_SCAREDZ | SPR_JUMPING | SPR_CLIMBING | SPR_FALLING | SPR_DEAD | SPR_SWIMMING)))
|
||||
{
|
||||
if (labs(actor->int_pos().Z - globloz) > actor->user.lo_step)
|
||||
if (abs(actor->int_pos().Z - globloz) > actor->user.lo_step)
|
||||
{
|
||||
// cancel move
|
||||
actor->spr.pos = apos;
|
||||
|
|
Loading…
Reference in a new issue