gameServer/HWProtoInRoomState.hs
changeset 8627 ea2d32a03ac9
parent 8550 17378d33e62e
child 8757 266df6d5ed73
--- a/gameServer/HWProtoInRoomState.hs	Sun Mar 03 23:23:41 2013 +0400
+++ b/gameServer/HWProtoInRoomState.hs	Sun Mar 03 23:25:09 2013 +0400
@@ -305,14 +305,14 @@
     let kickId = fromJust maybeClientId
     let kickCl = rnc `client` kickId
     let sameRoom = clientRoom rnc thisClientId == clientRoom rnc kickId
-    let notOnly2Clans = (length . group . sort . map teamcolor . teams $ rm) > 2
+    let notOnly2Players = (length . group . sort . map teamowner . teams $ rm) > 2
     return
         [KickRoomClient kickId |
             master
             && isJust maybeClientId
             && (kickId /= thisClientId)
             && sameRoom
-            && ((isNothing $ gameInfo rm) || notOnly2Clans || teamsInGame kickCl == 0)
+            && ((isNothing $ gameInfo rm) || notOnly2Players || teamsInGame kickCl == 0)
         ]