gameServer/Actions.hs
changeset 10086 4a7ce724357f
parent 10076 b235e520ea21
child 10090 a471a7bbc339
equal deleted inserted replaced
10085:3e6cb7d80986 10086:4a7ce724357f
   715     readyCheckersIds <- io $ do
   715     readyCheckersIds <- io $ do
   716         allci <- allClientsM rnc
   716         allci <- allClientsM rnc
   717         filterM (client'sM rnc (isJust . checkInfo)) allci
   717         filterM (client'sM rnc (isJust . checkInfo)) allci
   718 
   718 
   719     (cinfo, l) <- io $ loadReplay (fromIntegral p) blackList
   719     (cinfo, l) <- io $ loadReplay (fromIntegral p) blackList
   720     when (not . null $ l) $
   720     when (isJust cinfo) $
   721         mapM_ processAction [
   721         mapM_ processAction [
   722             AnswerClients [c] ("REPLAY" : l)
   722             AnswerClients [c] ("REPLAY" : l)
   723             , ModifyClient $ \c -> c{checkInfo = cinfo, isReady = False}
   723             , ModifyClient $ \c -> c{checkInfo = cinfo, isReady = False}
   724             ]
   724             ]
   725 
   725