Fix warning: suggest parentheses around '&&' within '||' [-Wparentheses]

git-svn-id: https://svn.eduke32.com/eduke32@5863 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2016-09-16 21:55:24 +00:00
parent 1b906d74dd
commit dcbb2891ae

View file

@ -259,8 +259,8 @@ static int A_FindTargetSprite(const spritetype *pSprite, int projAng, int projec
(GTFLAGS(GAMETYPE_TDM) && g_player[P_Get(spriteNum)].ps->team == g_player[playerNum].ps->team))) (GTFLAGS(GAMETYPE_TDM) && g_player[P_Get(spriteNum)].ps->team == g_player[playerNum].ps->team)))
continue; continue;
if ((gotShrinker && sprite[spriteNum].xrepeat < 30) if ((gotShrinker && sprite[spriteNum].xrepeat < 30
&& (PN(spriteNum) == SHARK || (!(PN(spriteNum) >= GREENSLIME && PN(spriteNum) <= GREENSLIME + 7))) && (PN(spriteNum) == SHARK || !(PN(spriteNum) >= GREENSLIME && PN(spriteNum) <= GREENSLIME + 7)))
|| (gotFreezer && sprite[spriteNum].pal == 1)) || (gotFreezer && sprite[spriteNum].pal == 1))
continue; continue;
} }