]> Dogcows Code - chaz/carfire/commitdiff
bug found, reset needs to be called by all clients not just the host. commented out...
authorbrady <brady@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Mon, 29 Mar 2010 05:45:49 +0000 (05:45 +0000)
committerbrady <brady@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Mon, 29 Mar 2010 05:45:49 +0000 (05:45 +0000)
git-svn-id: https://bd85.net/svn/cs3505_group@31 92bb83a3-7c8f-8a45-bc97-515c4e399668

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.024766 seconds and 4 git commands to generate.