gameServer/HWProtoInRoomState.hs
changeset 6815 ed63275e02b7
parent 6758 26bf919aeb57
child 6912 831416764d2d
equal deleted inserted replaced
6814:21928ae7c74b 6815:ed63275e02b7
   212     let clTeams = map teamname . filter (\t -> teamowner t == nick cl) . teams $ rm
   212     let clTeams = map teamname . filter (\t -> teamowner t == nick cl) . teams $ rm
   213 
   213 
   214     if isJust $ gameInfo rm then
   214     if isJust $ gameInfo rm then
   215         if (isMaster cl && isCorrect) then
   215         if (isMaster cl && isCorrect) then
   216             return [FinishGame]
   216             return [FinishGame]
   217             else if not isCorrect then
   217             else return $ map SendTeamRemovalMessage clTeams
   218                 return $ map SendTeamRemovalMessage clTeams
       
   219                 else
       
   220                 return []
       
   221         else
   218         else
   222         return []
   219         return []
   223     where
   220     where
   224         isCorrect = correctly == "1"
   221         isCorrect = correctly == "1"
   225 
   222