Fixed linefeeds.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user