]> Dogcows Code - chaz/carfire/commitdiff
testing with reset relocated so all players call.
authorbrady <brady@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Mon, 29 Mar 2010 05:52:10 +0000 (05:52 +0000)
committerbrady <brady@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Mon, 29 Mar 2010 05:52:10 +0000 (05:52 +0000)
git-svn-id: https://bd85.net/svn/cs3505_group@32 92bb83a3-7c8f-8a45-bc97-515c4e399668

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

index 0d1ac6d00ca8fa7644095410d8630c8349ea404c..2386ef60717983e77271ee1aa4a81a16683769c9 100644 (file)
@@ -210,7 +210,7 @@ namespace CS_3505_Project_06
             mNetworkSession.StartGame();\r
             mNetworkSession.ResetReady();\r
 \r
-            Reset();\r
+            //Reset();\r
         }\r
 \r
 \r
@@ -232,6 +232,10 @@ namespace CS_3505_Project_06
                 if (mNetworkSession.SessionState == NetworkSessionState.Lobby)\r
                 {\r
                     mLobby.Update(gameTime, this);\r
+\r
+                    //if state started as lobby and was changed to playing, call reset.\r
+                    if (mNetworkSession.SessionState == NetworkSessionState.Playing)\r
+                        Reset();\r
                 }\r
                 else if (mNetworkSession.SessionState == NetworkSessionState.Playing)\r
                 {\r
This page took 0.023483 seconds and 4 git commands to generate.