netserver/HWProto.hs
changeset 1560 e140bc57ff68
parent 1559 71e1f67dcfe7
child 1561 f0af4e5fe880
equal deleted inserted replaced
1559:71e1f67dcfe7 1560:e140bc57ff68
   199 		sameRoomClients = filter (\ci -> room ci == roomName) clients
   199 		sameRoomClients = filter (\ci -> room ci == roomName) clients
   200 		clRoom = roomByName roomName rooms
   200 		clRoom = roomByName roomName rooms
   201 		watchRound = if (roomProto clRoom < 20) || (not $ gameinprogress clRoom) then
   201 		watchRound = if (roomProto clRoom < 20) || (not $ gameinprogress clRoom) then
   202 					[]
   202 					[]
   203 				else
   203 				else
   204 					(answerClientOnly  ["RUN_GAME"]) ++ answerClientOnly ("GAMEMSG" : roundMsgs clRoom)
   204 					(answerClientOnly  ["RUN_GAME"]) ++
       
   205 					answerClientOnly ("GAMEMSG" : "DGUkc3BlY3RhdGUgMQ==" : roundMsgs clRoom)
   205 
   206 
   206 handleCmd_noRoom client clients rooms ["JOIN", roomName] =
   207 handleCmd_noRoom client clients rooms ["JOIN", roomName] =
   207 	handleCmd_noRoom client clients rooms ["JOIN", roomName, ""]
   208 	handleCmd_noRoom client clients rooms ["JOIN", roomName, ""]
   208 
   209 
   209 handleCmd_noRoom _ _ _ _ = (noChangeClients, noChangeRooms, answerBadCmd)
   210 handleCmd_noRoom _ _ _ _ = (noChangeClients, noChangeRooms, answerBadCmd)