Disable the button/order when there aren't enough clients to assign

This commit is contained in:
Scott_NZ
2013-03-11 00:29:23 +13:00
parent 8c46b421de
commit 7af91f1747
2 changed files with 7 additions and 3 deletions

View File

@@ -163,7 +163,8 @@ namespace OpenRA.Mods.RA.Widgets.Logic
if (assignTeams != null)
{
assignTeams.IsVisible = () => Game.IsHost;
assignTeams.IsDisabled = () => gameStarting || orderManager.LocalClient == null || orderManager.LocalClient.IsReady;
assignTeams.IsDisabled = () => gameStarting || orderManager.LobbyInfo.Clients.Count < 2
|| orderManager.LocalClient == null || orderManager.LocalClient.IsReady;
assignTeams.OnMouseDown = _ =>
{