]> Dogcows Code - chaz/carfire/blobdiff - Project06/CS 3505 Project 06/CS 3505 Project 06/NetworkGame.cs
bug found, reset needs to be called by all clients not just the host. commented out...
[chaz/carfire] / Project06 / CS 3505 Project 06 / CS 3505 Project 06 / NetworkGame.cs
index 3ce0372be2059e941415307532a715ece59d8055..0d1ac6d00ca8fa7644095410d8630c8349ea404c 100644 (file)
@@ -235,12 +235,18 @@ namespace CS_3505_Project_06
                 }\r
                 else if (mNetworkSession.SessionState == NetworkSessionState.Playing)\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
+                    //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
 \r
                     if (HaveNeededEvents)\r
                     {\r
This page took 0.022179 seconds and 4 git commands to generate.