From: brady Date: Mon, 29 Mar 2010 05:45:49 +0000 (+0000) Subject: bug found, reset needs to be called by all clients not just the host. commented out... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=48392c0afba657a4798a0624ba46b5730c89d8ab;p=chaz%2Fcarfire bug found, reset needs to be called by all clients not just the host. commented out error section to continue testing. git-svn-id: https://bd85.net/svn/cs3505_group@31 92bb83a3-7c8f-8a45-bc97-515c4e399668 --- diff --git a/Project06/CS 3505 Project 06/CS 3505 Project 06/NetworkGame.cs b/Project06/CS 3505 Project 06/CS 3505 Project 06/NetworkGame.cs index 3ce0372..0d1ac6d 100644 --- a/Project06/CS 3505 Project 06/CS 3505 Project 06/NetworkGame.cs +++ b/Project06/CS 3505 Project 06/CS 3505 Project 06/NetworkGame.cs @@ -235,12 +235,18 @@ namespace CS_3505_Project_06 } else if (mNetworkSession.SessionState == NetworkSessionState.Playing) { - if (mGame.IsGameOver(LocalGamerInfo) || mGame.IsTerminated(LocalGamerInfo)) - { - // TODO: Should support moving back to the session lobby. - LeaveSession(); - return; - } + //TODO reset needs to be called for all players, currently LocalGamerInfo throughs exception for all nonhosts + // because in start game reset is only called on hosts games thus other clients never get an updated list + // gamers. + + +//thoughs exeption see TODO above + //if (mGame.IsGameOver(LocalGamerInfo) || mGame.IsTerminated(LocalGamerInfo)) + //{ + // // TODO: Should support moving back to the session lobby. + // LeaveSession(); + // return; + //} if (HaveNeededEvents) {