Don't kick everyone from lobby
authorunc0rr
Thu, 08 Jan 2009 15:32:26 +0000
changeset 1599 65b5d3cd3e01
parent 1598 c853e02ed663
child 1600 305e13c5f327
Don't kick everyone from lobby
netserver/HWProto.hs
--- a/netserver/HWProto.hs	Thu Jan 08 15:26:12 2009 +0000
+++ b/netserver/HWProto.hs	Thu Jan 08 15:32:26 2009 +0000
@@ -125,7 +125,7 @@
 	if null (room client) then
 		(noChangeClients, noChangeRooms, answerQuit msg ++ (answerQuitLobby (nick client) msg) )
 	else if isMaster client then
-		(modifyRoomClients clRoom (\cl -> cl{room = [], isReady = False}), removeRoom (room client), (answerQuit msg) ++ (answerQuitLobby (nick client) msg) ++ (answerAbandoned $ protocol client) ++ (answerRoomDeleted $ room client)) -- core disconnects clients on ROOMABANDONED answer
+		(modifyRoomClients clRoom (\cl -> cl{isReady = False}), removeRoom (room client), (answerQuit msg) ++ (answerQuitLobby (nick client) msg) ++ (answerAbandoned $ protocol client) ++ (answerRoomDeleted $ room client)) -- core disconnects clients on ROOMABANDONED answer
 	else
 		(noChangeClients, modifyRoom clRoom{teams = othersTeams, playersIn = (playersIn clRoom) - 1, readyPlayers = newReadyPlayers}, (answerQuit msg) ++ (answerQuitInform (nick client) msg) ++ (answerQuitLobby (nick client) msg) ++ answerRemoveClientTeams)
 	where