Fixed radio commands that should be issued only when chatter enabled.

Implemented useless waypoint cleaner (yb wp clean <nr/all>).
This commit is contained in:
Dmitry 2019-05-07 15:50:08 +03:00 committed by jeefo
commit d4e1fdb4fb
5 changed files with 410 additions and 7 deletions

View file

@ -905,7 +905,9 @@ void Bot::fireWeapons (void) {
m_reloadState = RELOAD_PRIMARY;
m_reloadCheckTime = engine.timebase ();
pushRadioMessage (RADIO_NEED_BACKUP);
if (rng.getInt (0, 100) < cr::abs (m_difficulty * 25 - 100)) {
pushRadioMessage (RADIO_NEED_BACKUP);
}
}
return;
}