HackyAI supports teams (Fixes #917).

This commit is contained in:
Paul Chote
2011-06-23 17:41:38 +12:00
parent 6ed0c574be
commit ec3d467858
2 changed files with 4 additions and 14 deletions

View File

@@ -507,7 +507,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
factionflag.GetImageCollection = () => "flags";
var team = template.GetWidget<DropDownButtonWidget>("TEAM");
team.IsDisabled = () => slot.LockTeam || ready || client.Bot != null;
team.IsDisabled = () => slot.LockTeam || ready;
team.OnMouseDown = _ => team.IsDisabled() ? true : ShowTeamDropDown(team, client);
team.GetText = () => (client.Team == 0) ? "-" : client.Team.ToString();