Fix bug in server causing queue errors when trying to join 2nd round in same room
authorunc0rr
Sat, 10 Jan 2009 15:21:48 +0000
changeset 1632 b3fcd8a36124
parent 1631 6e313b3818ef
child 1633 c1de4078b0fd
Fix bug in server causing queue errors when trying to join 2nd round in same room
netserver/HWProto.hs
--- a/netserver/HWProto.hs	Sat Jan 10 12:47:54 2009 +0000
+++ b/netserver/HWProto.hs	Sat Jan 10 15:21:48 2009 +0000
@@ -368,7 +368,7 @@
 handleCmd_inRoom client _ rooms ["START_GAME"] =
 	if isMaster client && (playersIn clRoom == readyPlayers clRoom) && (not $ gameinprogress clRoom) then
 		if enoughClans then
-			(noChangeClients, modifyRoom clRoom{gameinprogress = True}, answerRunGame)
+			(noChangeClients, modifyRoom clRoom{gameinprogress = True, roundMsgs = []}, answerRunGame)
 		else
 			(noChangeClients, noChangeRooms, answerTooFewClans)
 	else