From e20b2ab872e7bd188b760f4ad79ff3d54f398445 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 22 Aug 2022 18:29:14 +0200 Subject: [PATCH] - don't use labs. --- source/games/sw/src/sprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/sw/src/sprite.cpp b/source/games/sw/src/sprite.cpp index d10d66cb1..832d1de71 100644 --- a/source/games/sw/src/sprite.cpp +++ b/source/games/sw/src/sprite.cpp @@ -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;