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

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

index 68230aa23902fc678beacc23355c37deb417a5c7..bacfb19074d77dfc8686f2395fc1c162d20dbcb1 100644 (file)
@@ -179,12 +179,16 @@ namespace CS_3505_Project_06
 \r
         public void Draw(GameTime gameTime, SpriteBatch spriteBatch)\r
         {\r
-            if (mNetworkSession.SessionState != NetworkSessionState.Playing)\r
-                DrawTestHarness(gameTime, spriteBatch);\r
+            if (mNetworkSession != null)\r
+            {\r
+                if (mNetworkSession.SessionState != NetworkSessionState.Playing)\r
+                    DrawTestHarness(gameTime, spriteBatch);\r
+                else\r
+                    mLobby.Draw(spriteBatch);\r
+            }\r
             else\r
                 mLobby.Draw(spriteBatch);\r
             \r
-            \r
         }\r
 \r
 \r
This page took 0.024134 seconds and 4 git commands to generate.