From: brady Date: Sat, 20 Mar 2010 11:17:30 +0000 (+0000) Subject: testing X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=59582c23e256206e8494f8e9752042ef1681a6e1;p=chaz%2Fcarfire testing git-svn-id: https://bd85.net/svn/cs3505_group@23 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 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); + + }