Make small delay which prevents auto-kick from occurring configurable.

This commit is contained in:
lotodore
2010-09-11 21:37:27 +00:00
parent cefe5b9240
commit 3016d6b3b2
4 changed files with 16 additions and 4 deletions
+3
View File
@@ -86,6 +86,8 @@ public:
void RemovePlayerInvitation(unsigned playerId);
bool IsPlayerInvited(unsigned playerId) const;
unsigned GetSmallDelaySec() const;
// should be protected, but is needed in function.
const Game &GetGame() const;
Game &GetGame();
@@ -188,6 +190,7 @@ private:
ConfigFile *m_playerConfig;
unsigned m_gameNum;
unsigned m_curPetitionId;
unsigned m_doNotAutoKickSmallDelaySec;
boost::asio::deadline_timer m_voteKickTimer;
boost::asio::deadline_timer m_stateTimer1;
boost::asio::deadline_timer m_stateTimer2;