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

@@ -34,7 +34,7 @@ namespace OpenRA.Widgets.Delegates
return true;
};
Game.OnGameStart += () => validPlayers = Game.world.players.Values.Where(a => a != Game.world.LocalPlayer && !a.NonCombatant).Count();
Game.AfterGameStart += () => validPlayers = Game.world.players.Values.Where(a => a != Game.world.LocalPlayer && !a.NonCombatant).Count();
diplomacy.IsVisible = () => (validPlayers > 0);
}