Force-starting a game now only works for client versions >43
authordag10
Mon, 21 Jan 2013 13:04:57 -0500
changeset 8418 4543cc2049af
parent 8417 790492abc004
child 8419 d99f46b676b5
Force-starting a game now only works for client versions >43
gameServer/HWProtoInRoomState.hs
--- a/gameServer/HWProtoInRoomState.hs	Mon Jan 21 12:22:33 2013 +0400
+++ b/gameServer/HWProtoInRoomState.hs	Mon Jan 21 13:04:57 2013 -0500
@@ -185,7 +185,7 @@
     let nicks = map (nick . client rnc) . roomClients rnc $ clientRoom rnc ci
     let allPlayersRegistered = all ((<) 0 . B.length . webPassword . client rnc . teamownerId) $ teams rm
 
-    if isMaster cl && not (isJust $ gameInfo rm) then
+    if isMaster cl && (playersIn rm == readyPlayers rm || clientProto cl > 43) && not (isJust $ gameInfo rm) then
         if enoughClans rm then
             return [
                 ModifyRoom