From 41f16c6fe0674f5bc7bf25bfd3dcd237f68611d5 Mon Sep 17 00:00:00 2001 From: brady Date: Sat, 20 Mar 2010 11:19:52 +0000 Subject: [PATCH] testing git-svn-id: https://bd85.net/svn/cs3505_group@24 92bb83a3-7c8f-8a45-bc97-515c4e399668 --- .../CS 3505 Project 06/NetworkGame.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 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 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); - } -- 2.45.2