gearbox: fix -Werror=parentheses

This commit is contained in:
Alibek Omarov 2021-02-26 17:57:28 +03:00
parent aaf9b6a278
commit bc88c81f7c
2 changed files with 2 additions and 2 deletions

View File

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

View File

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