Disabled kicking computer players, which causes the current crashes of the server.
This commit is contained in:
@@ -310,12 +310,14 @@ ServerGameThread::InternalKickPlayer(unsigned playerId)
|
|||||||
// Only kick if the player was found.
|
// Only kick if the player was found.
|
||||||
if (tmpSession.sessionData.get())
|
if (tmpSession.sessionData.get())
|
||||||
MoveSessionToLobby(tmpSession, NTF_NET_REMOVED_KICKED);
|
MoveSessionToLobby(tmpSession, NTF_NET_REMOVED_KICKED);
|
||||||
else
|
// KICKING COMPUTER PLAYERS IS BUGGY AND OCCASIONALLY CAUSES A CRASH
|
||||||
{
|
// Disabled for now.
|
||||||
boost::shared_ptr<PlayerData> tmpData(RemoveComputerPlayer(playerId));
|
//else
|
||||||
if (tmpData)
|
//{
|
||||||
RemovePlayerData(tmpData, NTF_NET_REMOVED_KICKED);
|
// boost::shared_ptr<PlayerData> tmpData(RemoveComputerPlayer(playerId));
|
||||||
}
|
// if (tmpData)
|
||||||
|
// RemovePlayerData(tmpData, NTF_NET_REMOVED_KICKED);
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user