minor optimization

This commit is contained in:
jeefo 2016-09-19 15:09:09 +03:00
commit 97db73cdaa

View file

@ -4821,7 +4821,7 @@ void Bot::BotAI (void)
} }
// if bomb planted warn teammates ! // if bomb planted warn teammates !
if (g_canSayBombPlanted && g_bombPlanted && engine.GetTeam (GetEntity ()) == CT) if (g_canSayBombPlanted && g_bombPlanted && m_team == CT)
{ {
g_canSayBombPlanted = false; g_canSayBombPlanted = false;
ChatterMessage (Chatter_GottaFindTheBomb); ChatterMessage (Chatter_GottaFindTheBomb);