{\r
currentState = lobbyState.Connected;\r
networkGame.CreateSession(4);\r
- players = networkGame.LocalGamers;\r
} \r
break;\r
\r
ready = false;\r
}\r
availableSessions = networkGame.FindSessions();\r
-\r
+ if (availableSessions != null)\r
+ {\r
+ networkGame.JoinSession(availableSessions[0]);\r
+ currentState = lobbyState.Connected;\r
+ }\r
break;\r
\r
case lobbyState.Connected:\r
}\r
if (currentKeyboardState.IsKeyDown(Keys.R) && previousKeyboardState.IsKeyUp(Keys.R))\r
ready = true;\r
+\r
+ if (networkGame.sessionExists())\r
+ {\r
+ players = networkGame.LocalGamers;\r
+ }\r
+ else\r
+ currentState = lobbyState.Welcome;\r
+\r
+\r
break;\r
\r
}\r