gameServer/Actions.hs
changeset 10944 c4b3440eeac6
parent 10814 810ac1d21fd0
child 11046 47a8c19ecb60
equal deleted inserted replaced
10943:d90706a2183e 10944:c4b3440eeac6
   379     mapM_ processAction [
   379     mapM_ processAction [
   380         AnswerClients chans ["EM", rmTeamMsg],
   380         AnswerClients chans ["EM", rmTeamMsg],
   381         ModifyRoom (\r -> r{
   381         ModifyRoom (\r -> r{
   382                 gameInfo = liftM (\g -> g{
   382                 gameInfo = liftM (\g -> g{
   383                     teamsInGameNumber = teamsInGameNumber g - 1
   383                     teamsInGameNumber = teamsInGameNumber g - 1
   384                     , roundMsgs = (if isJust $ lastFilteredTimedMsg g then (:) (fromJust $ lastFilteredTimedMsg g) else id)
   384                     , lastFilteredTimedMsg = Nothing
   385                       $ rmTeamMsg : roundMsgs g
   385                     , roundMsgs = (if isJust $ lastFilteredTimedMsg g then ((:) rmTeamMsg . (:) (fromJust $ lastFilteredTimedMsg g)) else ((:) rmTeamMsg)) 
       
   386                         $ roundMsgs g
   386                 }) $ gameInfo r
   387                 }) $ gameInfo r
   387             })
   388             })
   388         ]
   389         ]
   389 
   390 
   390     rnc <- gets roomsClients
   391     rnc <- gets roomsClients