Can now start a game and disconnect from lobby without triggering a reload.

It is now possible to crash the game by starting a new server before the previous one has had time to timeout and release the port binding (the previous loadscreen pause meant this was always hidden).
This commit is contained in:
Paul Chote
2011-05-06 23:18:26 +12:00
parent 03264fa2ca
commit 6cb0cb7d0e
9 changed files with 590 additions and 19 deletions

View File

@@ -36,13 +36,14 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
{
if (Info.InstallMode == "cnc")
{
/*
Game.ConnectionStateChanged += orderManager =>
{
Widget.CloseWindow();
switch (orderManager.Connection.ConnectionState)
{
case ConnectionState.PreConnecting:
Widget.OpenWindow("MENU_BACKGROUND");
Widget.LoadWidget("MENU_BACKGROUND");
break;
case ConnectionState.Connecting:
Widget.OpenWindow("CONNECTING_BG",
@@ -62,6 +63,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
break;
}
};
*/
}
else
{