Browse Source

gearbox: fix -Werror=parentheses

opforfixed
Alibek Omarov 4 years ago
parent
commit
bc88c81f7c
  1. 2
      dlls/gearbox/ctf_gamerules.cpp
  2. 2
      dlls/gearbox/geneworm.cpp

2
dlls/gearbox/ctf_gamerules.cpp

@ -464,7 +464,7 @@ void CCTFMultiplay::PlayerSpawn(CBasePlayer *pPlayer)
addDefault = TRUE; addDefault = TRUE;
while (pWeaponEntity = UTIL_FindEntityByClassname(pWeaponEntity, "game_player_equip")) while ((pWeaponEntity = UTIL_FindEntityByClassname(pWeaponEntity, "game_player_equip")))
{ {
pWeaponEntity->Touch(pPlayer); pWeaponEntity->Touch(pPlayer);
addDefault = FALSE; addDefault = FALSE;

2
dlls/gearbox/geneworm.cpp

@ -724,7 +724,7 @@ void CGeneWorm::DyingThink(void)
m_pBall = NULL; m_pBall = NULL;
} }
CBaseEntity* entity = NULL; CBaseEntity* entity = NULL;
while(entity = UTIL_FindEntityByClassname(entity, "monster_shocktrooper")) while((entity = UTIL_FindEntityByClassname(entity, "monster_shocktrooper")))
entity->SUB_StartFadeOut(); entity->SUB_StartFadeOut();
} }
} }

Loading…
Cancel
Save