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:
@@ -353,7 +353,7 @@ public:
|
|||||||
botent *m_pBotToView;
|
botent *m_pBotToView;
|
||||||
|
|
||||||
// Construction
|
// 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
|
// Destruction
|
||||||
~CBotManager(void);
|
~CBotManager(void);
|
||||||
|
|||||||
@@ -29,8 +29,6 @@ void CBotManager::Init()
|
|||||||
{
|
{
|
||||||
m_pBotToView = NULL;
|
m_pBotToView = NULL;
|
||||||
|
|
||||||
m_bBotsShoot = true;
|
|
||||||
m_bIdleBots = false;
|
|
||||||
m_iFrameTime = 0;
|
m_iFrameTime = 0;
|
||||||
m_iPrevTime = lastmillis;
|
m_iPrevTime = lastmillis;
|
||||||
m_sBotSkill = 1; // Default all bots have the skill 'Good'
|
m_sBotSkill = 1; // Default all bots have the skill 'Good'
|
||||||
|
|||||||
Reference in New Issue
Block a user