]> Dogcows Code - chaz/carfire/commitdiff
testing
authorbrady <brady@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Sat, 20 Mar 2010 11:17:30 +0000 (11:17 +0000)
committerbrady <brady@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Sat, 20 Mar 2010 11:17:30 +0000 (11:17 +0000)
git-svn-id: https://bd85.net/svn/cs3505_group@23 92bb83a3-7c8f-8a45-bc97-515c4e399668

Project06/CS 3505 Project 06/CS 3505 Project 06/NetworkGame.cs

index d2b4846489967f504ac36634be1aebbaed6f54b1..68230aa23902fc678beacc23355c37deb417a5c7 100644 (file)
@@ -122,6 +122,7 @@ namespace CS_3505_Project_06
         public void StartGame()\r
         {\r
             mNetworkSession.StartGame();\r
+            mNetworkSession.ResetReady();\r
         }\r
 \r
         public void LeaveSession()\r
@@ -178,8 +179,12 @@ namespace CS_3505_Project_06
 \r
         public void Draw(GameTime gameTime, SpriteBatch spriteBatch)\r
         {\r
-            mLobby.Draw(spriteBatch);\r
-            DrawTestHarness(gameTime, spriteBatch);\r
+            if (mNetworkSession.SessionState != NetworkSessionState.Playing)\r
+                DrawTestHarness(gameTime, spriteBatch);\r
+            else\r
+                mLobby.Draw(spriteBatch);\r
+            \r
+            \r
         }\r
 \r
 \r
This page took 0.025609 seconds and 4 git commands to generate.