foxygit / doom Log in
commit 02844c387cd34599770d00701009b9f1f8a416f3
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Thu May 7 17:40:31 2020 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Thu May 7 17:40:31 2020 +0300

    hexen: Fix clang abs warning in A_SorcBallOrbit
---
 src/hexen/p_enemy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hexen/p_enemy.c b/src/hexen/p_enemy.c
index 30baf685..f7b59ea0 100644
--- a/src/hexen/p_enemy.c
+++ b/src/hexen/p_enemy.c
@@ -4032,7 +4032,7 @@ void A_SorcBallOrbit(mobj_t * actor)
         case SORC_STOPPING:    // Balls stopping
             if ((parent->special2.i == actor->type) &&
                 (parent->args[1] > SORCBALL_SPEED_ROTATIONS) &&
-                (abs(angle - (parent->angle >> ANGLETOFINESHIFT)) <
+                (abs((int) angle - (int) (parent->angle >> ANGLETOFINESHIFT)) <
                  (30 << 5)))
             {
                 // Can stop now