gameServer/HWProtoInRoomState.hs
changeset 8416 e691acd778f5
parent 8403 fbc6e7602e05
child 8418 4543cc2049af
equal deleted inserted replaced
8415:02acf6b92f52 8416:e691acd778f5
   183     chans <- roomClientsChans
   183     chans <- roomClientsChans
   184 
   184 
   185     let nicks = map (nick . client rnc) . roomClients rnc $ clientRoom rnc ci
   185     let nicks = map (nick . client rnc) . roomClients rnc $ clientRoom rnc ci
   186     let allPlayersRegistered = all ((<) 0 . B.length . webPassword . client rnc . teamownerId) $ teams rm
   186     let allPlayersRegistered = all ((<) 0 . B.length . webPassword . client rnc . teamownerId) $ teams rm
   187 
   187 
   188     if isMaster cl && playersIn rm == readyPlayers rm && not (isJust $ gameInfo rm) then
   188     if isMaster cl && not (isJust $ gameInfo rm) then
   189         if enoughClans rm then
   189         if enoughClans rm then
   190             return [
   190             return [
   191                 ModifyRoom
   191                 ModifyRoom
   192                     (\r -> r{
   192                     (\r -> r{
   193                         gameInfo = Just $ newGameInfo (teams rm) (length $ teams rm) allPlayersRegistered (mapParams rm) (params rm)
   193                         gameInfo = Just $ newGameInfo (teams rm) (length $ teams rm) allPlayersRegistered (mapParams rm) (params rm)