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).
This commit is contained in:
aurhat
2015-06-21 10:36:36 +02:00
parent c1b10536c6
commit 0197cea1ea
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -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);
-2
View File
@@ -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'