From 6fa4f6585bbc1894042d15a7557d121c03c51881 Mon Sep 17 00:00:00 2001 From: lotodore Date: Tue, 23 Dec 2008 01:34:32 +0000 Subject: [PATCH] Disabled kicking computer players, which causes the current crashes of the server. --- src/net/common/servergamethread.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/net/common/servergamethread.cpp b/src/net/common/servergamethread.cpp index 27f8756d..38bd99bb 100644 --- a/src/net/common/servergamethread.cpp +++ b/src/net/common/servergamethread.cpp @@ -310,12 +310,14 @@ ServerGameThread::InternalKickPlayer(unsigned playerId) // Only kick if the player was found. if (tmpSession.sessionData.get()) MoveSessionToLobby(tmpSession, NTF_NET_REMOVED_KICKED); - else - { - boost::shared_ptr tmpData(RemoveComputerPlayer(playerId)); - if (tmpData) - RemovePlayerData(tmpData, NTF_NET_REMOVED_KICKED); - } + // KICKING COMPUTER PLAYERS IS BUGGY AND OCCASIONALLY CAUSES A CRASH + // Disabled for now. + //else + //{ + // boost::shared_ptr tmpData(RemoveComputerPlayer(playerId)); + // if (tmpData) + // RemovePlayerData(tmpData, NTF_NET_REMOVED_KICKED); + //} } void