Change "Change faction" lobby command

This commit is contained in:
Pavel Penev
2015-08-22 02:46:00 +03:00
parent 05e081043b
commit dec2696e76
2 changed files with 2 additions and 2 deletions

View File

@@ -738,7 +738,7 @@ namespace OpenRA.Mods.Common.Server
return true;
}
},
{ "race",
{ "faction",
s =>
{
var parts = s.Split(' ');

View File

@@ -111,7 +111,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{
var item = ScrollItemWidget.Setup(itemTemplate,
() => client.Faction == factionId,
() => orderManager.IssueOrder(Order.Command("race {0} {1}".F(client.Index, factionId))));
() => orderManager.IssueOrder(Order.Command("faction {0} {1}".F(client.Index, factionId))));
var faction = factions[factionId];
item.Get<LabelWidget>("LABEL").GetText = () => faction.Name;
var flag = item.Get<ImageWidget>("FLAG");