freebsd-ports/games/edge/files/patch-src_p__enemy.cc
Jan Beich ae71612dea games/edge: unbreak with clang 4.0
src/p_enemy.cc:531:26: error: ordered comparison between pointer and zero
      ('struct mobj_s **' and 'int')
        if (brain_spots.targets > 0)
            ~~~~~~~~~~~~~~~~~~~ ^ ~
src/w_sprite.cc:578:42: error: ordered comparison between pointer and zero
      ('spriteframe_c *' and 'int')
                        if (sprites[states[i].sprite]->frames > 0)
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~

Reported by:	antoine (via exp-run)
2017-02-01 05:26:51 +00:00

11 lines
258 B
C++

--- src/p_enemy.cc.orig 2011-03-31 12:12:40 UTC
+++ src/p_enemy.cc
@@ -528,7 +528,7 @@ void P_FreeShootSpots(void)
if (brain_spots.number < 0)
return;
- if (brain_spots.targets > 0)
+ if (brain_spots.targets)
{
SYS_ASSERT(brain_spots.targets);