Prioritise primary buildings in CycleBasesHotkeyLogic.
This commit is contained in:
@@ -41,6 +41,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic.Ingame
|
|||||||
|
|
||||||
var bases = world.ActorsHavingTrait<BaseBuilding>()
|
var bases = world.ActorsHavingTrait<BaseBuilding>()
|
||||||
.Where(a => a.Owner == player)
|
.Where(a => a.Owner == player)
|
||||||
|
.OrderByDescending(a => a.IsPrimaryBuilding())
|
||||||
|
.ThenBy(a => a.ActorID)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
// If no BaseBuilding exist pick the first selectable Building.
|
// If no BaseBuilding exist pick the first selectable Building.
|
||||||
|
|||||||
Reference in New Issue
Block a user