netserver/HWProto.hs
changeset 1345 73119de7d3be
parent 1344 4004e597f1bf
child 1350 99a921e292f4
--- 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])])