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

    hexen: Fix clang abs warning in DragonSeek
---
 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 d805ca9f..02584913 100644
--- a/src/hexen/p_enemy.c
+++ b/src/hexen/p_enemy.c
@@ -2877,7 +2877,7 @@ static void DragonSeek(mobj_t * actor, angle_t thresh, angle_t turnMax)
     {                           // attack the destination mobj if it's attackable
         mobj_t *oldTarget;

-        if (abs(actor->angle - R_PointToAngle2(actor->x, actor->y,
+        if (abs((int) actor->angle - (int) R_PointToAngle2(actor->x, actor->y,
                                                target->x,
                                                target->y)) < ANG45 / 2)
         {