Implementing automatic kick of players after a certain timeout within a game.

This commit is contained in:
lotodore
2011-12-16 22:39:24 +00:00
parent 91b3307584
commit 0a8cd1cce4
8 changed files with 51 additions and 27 deletions
+2 -2
View File
@@ -220,7 +220,7 @@ ServerGame::TimerVoteKick(const boost::system::error_code &ec)
// Perform kick.
if (doKick)
InternalKickPlayer(m_voteKickData->kickPlayerId);
KickPlayer(m_voteKickData->kickPlayerId);
// This petition has ended.
m_voteKickData.reset();
}
@@ -398,7 +398,7 @@ ServerGame::InternalEndGame()
}
void
ServerGame::InternalKickPlayer(unsigned playerId)
ServerGame::KickPlayer(unsigned playerId)
{
MarkPlayerAsKicked(playerId);