shithub: choc

Download patch

ref: 698015b6224ca500a7852450994c94a69afe761f
parent: 5d0720d59b521da5686dff85ccfcbf65d79a2b8a
author: Turo Lamminen <[email protected]>
date: Thu May 7 13:37:23 EDT 2020

hexen: Fix clang abs warning in DragonSeek

--- a/src/hexen/p_enemy.c
+++ b/src/hexen/p_enemy.c
@@ -2877,7 +2877,7 @@
     {                           // 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)
         {