]> Dogcows Code - chaz/carfire/blobdiff - Project06/CS 3505 Project 06/CS 3505 Project 06/NetworkGame.cs
cleaned up some comments I was making during testing
[chaz/carfire] / Project06 / CS 3505 Project 06 / CS 3505 Project 06 / NetworkGame.cs
index 2265329d31dc76b6aa60b32dcfd9d1535e64da6e..72a588cf62f6fcbab846b40794fd387dbf529a52 100644 (file)
@@ -244,18 +244,12 @@ namespace CS_3505_Project_06
                 }\r
                 else if (mNetworkSession.SessionState == NetworkSessionState.Playing)\r
                 {\r
-                    //TODO reset needs to be called for all players, currently LocalGamerInfo throughs exception for all nonhosts\r
-                    //     because in start game reset is only called on hosts games thus other clients never get an updated list\r
-                    //     gamers.\r
-\r
-\r
-//thoughs exeption see TODO above\r
-                    //if (mGame.IsGameOver(LocalGamerInfo) || mGame.IsTerminated(LocalGamerInfo))\r
-                    //{\r
-                    //    // TODO: Should support moving back to the session lobby.\r
-                    //    LeaveSession();\r
-                    //    return;\r
-                    //}\r
+                    if (mGame.IsGameOver(LocalGamerInfo) || mGame.IsTerminated(LocalGamerInfo))\r
+                    {\r
+                        // TODO: Should support moving back to the session lobby.\r
+                        LeaveSession();\r
+                        return;\r
+                    }\r
 \r
                     if (HaveNeededEvents)\r
                     {\r
This page took 0.019984 seconds and 4 git commands to generate.