fix: do rotation instantly, and not on round start
so it works on infinite round like in csdm
This commit is contained in:
parent
40a81e3378
commit
19c5e6dd4d
3 changed files with 9 additions and 8 deletions
|
|
@ -1236,14 +1236,6 @@ void BotManager::handleDeath (edict_t *killer, edict_t *victim) {
|
|||
void Bot::newRound () {
|
||||
// this function initializes a bot after creation & at the start of each round
|
||||
|
||||
// kick the bot if stay time is over, the quota maintain will add new bot for us later
|
||||
if (cv_rotate_bots.bool_ () && m_stayTime < game.time ()) {
|
||||
m_kickedByRotation = true; // kicked by roration, so not save bot name if save bot names is active
|
||||
|
||||
kick ();
|
||||
return;
|
||||
}
|
||||
|
||||
// delete all allocated path nodes
|
||||
clearSearchNodes ();
|
||||
clearRoute ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue