Minor refactoring.

This commit is contained in:
jeefo 2019-05-31 11:34:32 +03:00
commit 9eaca5a27b
12 changed files with 165 additions and 162 deletions

View file

@ -1070,7 +1070,7 @@ void Engine::processMessages (void *ptr) {
notify->clearSearchNodes ();
notify->clearTasks ();
if (yb_communication_type.integer () == 2 && rng.getInt (0, 100) < 55 && notify->m_team == TEAM_COUNTER) {
if (yb_communication_type.integer () == 2 && rng.chance (55) && notify->m_team == TEAM_COUNTER) {
notify->pushChatterMessage (CHATTER_WHERE_IS_THE_BOMB);
}
}