From 0197cea1ea4f30b363170bca4bf3f4019ee97a9c Mon Sep 17 00:00:00 2001 From: aurhat Date: Sat, 20 Jun 2015 18:00:28 +0200 Subject: [PATCH] Fix initial values of botsshoot and idlebots Before values of botsshoot and idlebots were showed wrong, when bot mode wasn't earlier triggered, and later these values were overwrote after start of bot mode (thx harps). --- source/src/bot/bot.h | 2 +- source/src/bot/botmanager.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/source/src/bot/bot.h b/source/src/bot/bot.h index 7ea4029a..783040e2 100644 --- a/source/src/bot/bot.h +++ b/source/src/bot/bot.h @@ -353,7 +353,7 @@ public: botent *m_pBotToView; // Construction - CBotManager(void) { m_bInit = true; m_fReAddBotDelay = -1.0f; }; + CBotManager(void) { m_bInit = true; m_bBotsShoot = true; m_bIdleBots = false; m_fReAddBotDelay = -1.0f; }; // Destruction ~CBotManager(void); diff --git a/source/src/bot/botmanager.cpp b/source/src/bot/botmanager.cpp index cb43a217..173e95f2 100644 --- a/source/src/bot/botmanager.cpp +++ b/source/src/bot/botmanager.cpp @@ -29,8 +29,6 @@ void CBotManager::Init() { m_pBotToView = NULL; - m_bBotsShoot = true; - m_bIdleBots = false; m_iFrameTime = 0; m_iPrevTime = lastmillis; m_sBotSkill = 1; // Default all bots have the skill 'Good'