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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user