]> Dogcows Code - chaz/carfire/commitdiff
Allowed Game to start with less than 4 players.
authorKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Thu, 15 Apr 2010 01:06:50 +0000 (01:06 +0000)
committerKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Thu, 15 Apr 2010 01:06:50 +0000 (01:06 +0000)
git-svn-id: https://bd85.net/svn/cs3505_group@76 92bb83a3-7c8f-8a45-bc97-515c4e399668

CarFire/CarFire/CarFire/ScreenManager.cs

index 4998eacc6a1628f71f8498415816f0bfb348c2da..39d95ddc07b33e750913a5509c88ac6176c2701e 100644 (file)
@@ -365,7 +365,7 @@ namespace CarFire
                             }\r
 \r
                             //allows host to start the game when all players are ready, change count below to different number for testing with less then 4 players\r
-                            if (allReady && players.Count == 4 && localPlayer == players[0])\r
+                            if (allReady && players.Count <= 1 && localPlayer == players[0])\r
                             {\r
                                 if (currentKeyboardState.IsKeyDown(Keys.B) && previousKeyboardState.IsKeyUp(Keys.B))\r
                                 {\r
@@ -441,7 +441,7 @@ namespace CarFire
                 case lobbyState.Connected:\r
                     DrawPlayerList(spriteBatch);\r
                     DrawChatInfo(spriteBatch);                    \r
-                    if(allReady && players.Count == 2 && localPlayer == players[0])\r
+                    if(allReady && players.Count <= 4 && localPlayer == players[0])\r
                         spriteBatch.DrawString(menuFont, "Press B to begin game!", new Vector2(MaxX / 2, MaxY / 2), Color.White, 0f, zero, .7f, SpriteEffects.None, 0.5f);\r
                     else if(allReady)\r
                         spriteBatch.DrawString(menuFont, "The game will begin soon.", new Vector2(MaxX / 2, MaxY / 2), Color.White, 0f, zero, .7f, SpriteEffects.None, 0.5f);\r
This page took 0.024702 seconds and 4 git commands to generate.