- don't use labs.

This commit is contained in:
Christoph Oelckers 2022-08-22 18:29:14 +02:00
parent 139969d017
commit e20b2ab872

View file

@ -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;