Server erases teams list after round finish, so everything should be okay now
authorunc0rr
Sun, 12 Oct 2008 17:04:07 +0000
changeset 1345 73119de7d3be
parent 1344 4004e597f1bf
child 1346 b4d51b95aa16
Server erases teams list after round finish, so everything should be okay now
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])])