# HG changeset patch # User unc0rr # Date 1223831047 0 # Node ID 73119de7d3bef68f362eac444afc5bd5f93b605b # Parent 4004e597f1bf477df8faafd6a57da1a3ed4c927e Server erases teams list after round finish, so everything should be okay now diff -r 4004e597f1bf -r 73119de7d3be netserver/HWProto.hs --- a/netserver/HWProto.hs Sun Oct 12 16:45:13 2008 +0000 +++ b/netserver/HWProto.hs Sun Oct 12 17:04:07 2008 +0000 @@ -218,8 +218,13 @@ else (noChangeClients, noChangeRooms, answerRunGame) -handleCmd_inRoom client _ _ ["ROUNDFINISHED"] = +handleCmd_inRoom client _ rooms ["ROUNDFINISHED"] = + if isMaster client then + (noChangeClients, modifyRoom clRoom{teams = []}, []) + else (noChangeClients, noChangeRooms, []) + where + clRoom = roomByName (room client) rooms handleCmd_inRoom client _ _ ["GAMEMSG", msg] = (noChangeClients, noChangeRooms, [(othersInRoom, ["GAMEMSG", msg])])