foxygit / doom Log in
commit dd913a157ea5b8072d72b712b8d038f2231981ba
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Thu May 7 17:38:23 2020 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Thu May 7 17:38:23 2020 +0300

    hexen: Fix another clang abs warning in DragonSeek
---
 src/hexen/p_enemy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/hexen/p_enemy.c b/src/hexen/p_enemy.c
index 02584913..aeeb5ca7 100644
--- a/src/hexen/p_enemy.c
+++ b/src/hexen/p_enemy.c
@@ -2915,9 +2915,9 @@ static void DragonSeek(mobj_t * actor, angle_t thresh, angle_t turnMax)
                 mo = P_FindMobjFromTID(target->args[i], &search);
                 angleToSpot = R_PointToAngle2(actor->x, actor->y,
                                               mo->x, mo->y);
-                if (abs(angleToSpot - angleToTarget) < bestAngle)
+                if (abs((int) angleToSpot - (int) angleToTarget) < bestAngle)
                 {
-                    bestAngle = abs(angleToSpot - angleToTarget);
+                    bestAngle = abs((int) angleToSpot - (int) angleToTarget);
                     bestArg = i;
                 }
             }