X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fcarfire;a=blobdiff_plain;f=Project06%2FCS%203505%20Project%2006%2FCS%203505%20Project%2006%2FNetworkGame.cs;fp=Project06%2FCS%203505%20Project%2006%2FCS%203505%20Project%2006%2FNetworkGame.cs;h=72a588cf62f6fcbab846b40794fd387dbf529a52;hp=2265329d31dc76b6aa60b32dcfd9d1535e64da6e;hb=0e2cd798178ca471d26ea33ee849365c3b9b593e;hpb=424af2f9da6ebb3b8acf64a77fea552d37846cff 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 2265329..72a588c 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 @@ -244,18 +244,12 @@ namespace CS_3505_Project_06 } else if (mNetworkSession.SessionState == NetworkSessionState.Playing) { - //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 (mGame.IsGameOver(LocalGamerInfo) || mGame.IsTerminated(LocalGamerInfo)) + { + // TODO: Should support moving back to the session lobby. + LeaveSession(); + return; + } if (HaveNeededEvents) {