From: brady Date: Mon, 29 Mar 2010 05:52:10 +0000 (+0000) Subject: testing with reset relocated so all players call. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=9187849a37e447f2440ef8257e15e8652f0c51e8;p=chaz%2Fcarfire testing with reset relocated so all players call. git-svn-id: https://bd85.net/svn/cs3505_group@32 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 0d1ac6d..2386ef6 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 @@ -210,7 +210,7 @@ namespace CS_3505_Project_06 mNetworkSession.StartGame(); mNetworkSession.ResetReady(); - Reset(); + //Reset(); } @@ -232,6 +232,10 @@ namespace CS_3505_Project_06 if (mNetworkSession.SessionState == NetworkSessionState.Lobby) { mLobby.Update(gameTime, this); + + //if state started as lobby and was changed to playing, call reset. + if (mNetworkSession.SessionState == NetworkSessionState.Playing) + Reset(); } else if (mNetworkSession.SessionState == NetworkSessionState.Playing) {