Fix MP gamestart

This commit is contained in:
Paul Chote
2010-08-18 22:21:08 +12:00
parent cb3f6435ad
commit 21b0b12948
10 changed files with 80 additions and 49 deletions

View File

@@ -390,7 +390,7 @@ namespace OpenRA
orderManager.StartGame();
}
public static event Action OnGameStart = () => {};
public static event Action AfterGameStart = () => {};
public static event Action BeforeGameStart = () => {};
internal static void StartGame()
{
@@ -404,9 +404,8 @@ namespace OpenRA
foreach (var gs in world.WorldActor.TraitsImplementing<IGameStarted>())
gs.GameStarted(world);
viewport.GoToStartLocation(world.LocalPlayer);
orderManager.StartGame();
OnGameStart();
AfterGameStart();
}
public static Stance ChooseInitialStance(Player p, Player q)