freebsd-ports/games/edge/files/patch-src_w__sprite.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
371 B
C++

--- src/w_sprite.cc.orig 2010-12-31 04:28:14 UTC
+++ src/w_sprite.cc
@@ -575,7 +575,7 @@ bool W_CheckSpritesExist(const state_gro
if (states[i].sprite == SPR_NULL)
continue;
- if (sprites[states[i].sprite]->frames > 0)
+ if (sprites[states[i].sprite]->numframes > 0)
return true;
// -AJA- only check one per group. It _should_ check them all,