From: brady Date: Sat, 20 Mar 2010 11:19:52 +0000 (+0000) Subject: testing X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=41f16c6fe0674f5bc7bf25bfd3dcd237f68611d5;p=chaz%2Fcarfire testing git-svn-id: https://bd85.net/svn/cs3505_group@24 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 68230aa..bacfb19 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 @@ -179,12 +179,16 @@ namespace CS_3505_Project_06 public void Draw(GameTime gameTime, SpriteBatch spriteBatch) { - if (mNetworkSession.SessionState != NetworkSessionState.Playing) - DrawTestHarness(gameTime, spriteBatch); + if (mNetworkSession != null) + { + if (mNetworkSession.SessionState != NetworkSessionState.Playing) + DrawTestHarness(gameTime, spriteBatch); + else + mLobby.Draw(spriteBatch); + } else mLobby.Draw(spriteBatch); - }