From 59582c23e256206e8494f8e9752042ef1681a6e1 Mon Sep 17 00:00:00 2001 From: brady Date: Sat, 20 Mar 2010 11:17:30 +0000 Subject: [PATCH] testing git-svn-id: https://bd85.net/svn/cs3505_group@23 92bb83a3-7c8f-8a45-bc97-515c4e399668 --- .../CS 3505 Project 06/CS 3505 Project 06/NetworkGame.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 d2b4846..68230aa 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 @@ -122,6 +122,7 @@ namespace CS_3505_Project_06 public void StartGame() { mNetworkSession.StartGame(); + mNetworkSession.ResetReady(); } public void LeaveSession() @@ -178,8 +179,12 @@ namespace CS_3505_Project_06 public void Draw(GameTime gameTime, SpriteBatch spriteBatch) { - mLobby.Draw(spriteBatch); - DrawTestHarness(gameTime, spriteBatch); + if (mNetworkSession.SessionState != NetworkSessionState.Playing) + DrawTestHarness(gameTime, spriteBatch); + else + mLobby.Draw(spriteBatch); + + } -- 2.44.0