fix: quota maintain time is resetted on changelevel.

fix: crash without metamod after few map changes.
fix: move sprites precache into the correct place.
fix: move initialization stuff to post-ServerActivate.
This commit is contained in:
ds 2020-11-08 01:20:12 +03:00
commit 17b9200195
4 changed files with 44 additions and 47 deletions

View file

@ -54,6 +54,8 @@ BotManager::BotManager () {
m_timeRoundEnd = 0.0f;
m_autoKillCheckTime = 0.0f;
m_maintainTime = 0.0f;
m_quotaMaintainTime = 0.0f;
m_bombPlanted = false;
m_botsCanPause = false;
@ -470,8 +472,6 @@ void BotManager::maintainAutoKill () {
}
void BotManager::reset () {
m_maintainTime = 0.0f;
m_quotaMaintainTime = 0.0f;
m_grenadeUpdateTime = 0.0f;
m_entityUpdateTime = 0.0f;
m_plantSearchUpdateTime = 0.0f;