Use BeforeGameStart to remove mission browser UI on game start.

This commit is contained in:
Paul Chote
2016-05-28 18:13:09 +01:00
parent 773eb25917
commit 485e695585
2 changed files with 23 additions and 6 deletions

View File

@@ -197,7 +197,7 @@ namespace OpenRA
CreateAndStartLocalServer(lobbyInfo.GlobalSettings.Map, orders);
}
public static void CreateAndStartLocalServer(string mapUID, IEnumerable<Order> setupOrders, Action onStart = null)
public static void CreateAndStartLocalServer(string mapUID, IEnumerable<Order> setupOrders)
{
OrderManager om = null;
@@ -207,10 +207,8 @@ namespace OpenRA
LobbyInfoChanged -= lobbyReady;
foreach (var o in setupOrders)
om.IssueOrder(o);
if (onStart != null)
onStart();
};
LobbyInfoChanged += lobbyReady;
om = JoinServer(IPAddress.Loopback.ToString(), CreateLocalServer(mapUID), "");