Fixed linefeeds.

This commit is contained in:
lotodore
2007-11-16 15:01:40 +00:00
parent 26bde9388d
commit f428fb7904
2 changed files with 21 additions and 21 deletions
+20 -20
View File
@@ -87,12 +87,12 @@ ServerGameThread::AddSession(SessionWrapper session)
m_sessionQueue.push_back(session);
}
void
ServerGameThread::KickPlayer(unsigned playerId)
{
boost::mutex::scoped_lock lock(m_kickPlayerListMutex);
m_kickPlayerList.push_back(playerId);
}
void
ServerGameThread::KickPlayer(unsigned playerId)
{
boost::mutex::scoped_lock lock(m_kickPlayerListMutex);
m_kickPlayerList.push_back(playerId);
}
GameState
ServerGameThread::GetCurRound() const
@@ -163,24 +163,24 @@ ServerGameThread::Main()
GetLobbyThread().RemoveGame(GetId());
}
void
ServerGameThread::KickPlayerLoop()
{
boost::mutex::scoped_lock lock(m_kickPlayerListMutex);
PlayerIdList::iterator i = m_kickPlayerList.begin();
PlayerIdList::iterator end = m_kickPlayerList.end();
while (i != end)
{
void
ServerGameThread::KickPlayerLoop()
{
boost::mutex::scoped_lock lock(m_kickPlayerListMutex);
PlayerIdList::iterator i = m_kickPlayerList.begin();
PlayerIdList::iterator end = m_kickPlayerList.end();
while (i != end)
{
SessionWrapper tmpSession = GetSessionManager().GetSessionByUniquePlayerId(*i);
// Only kick if the player was found.
if (tmpSession.sessionData.get())
SessionError(tmpSession, ERR_NET_PLAYER_KICKED);
++i;
}
m_kickPlayerList.clear();
}
++i;
}
m_kickPlayerList.clear();
}
void
ServerGameThread::InternalStartGame()