gameServer/Actions.hs
changeset 7952 e3ffeb3d9389
parent 7947 0cf5277fef1a
child 7972 0dffb91eeb82
equal deleted inserted replaced
7948:ccaa746bd567 7952:e3ffeb3d9389
   393     mapM_ processAction $
   393     mapM_ processAction $
   394         ModifyRoom (\r -> r{
   394         ModifyRoom (\r -> r{
   395             teams = Prelude.filter (\t -> teamName /= teamname t) $ teams r
   395             teams = Prelude.filter (\t -> teamName /= teamname t) $ teams r
   396             , gameInfo = liftM (\g -> g{leftTeams = teamName : leftTeams g}) $ gameInfo r
   396             , gameInfo = liftM (\g -> g{leftTeams = teamName : leftTeams g}) $ gameInfo r
   397             })
   397             })
       
   398         : SendUpdateOnThisRoom
   398         : AnswerClients chans ["REMOVE_TEAM", teamName]
   399         : AnswerClients chans ["REMOVE_TEAM", teamName]
   399         : [SendTeamRemovalMessage teamName | inGame]
   400         : [SendTeamRemovalMessage teamName | inGame]
   400 
   401 
   401 
   402 
   402 processAction (RemoveClientTeams clId) = do
   403 processAction (RemoveClientTeams clId) = do