From 9187849a37e447f2440ef8257e15e8652f0c51e8 Mon Sep 17 00:00:00 2001 From: brady Date: Mon, 29 Mar 2010 05:52:10 +0000 Subject: [PATCH] testing with reset relocated so all players call. git-svn-id: https://bd85.net/svn/cs3505_group@32 92bb83a3-7c8f-8a45-bc97-515c4e399668 --- .../CS 3505 Project 06/CS 3505 Project 06/NetworkGame.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) { -- 2.45.2