Make Queue Groups work with ClassicProductionQueue.
This commit is contained in:
committed by
reaperrr
parent
8e91a1ba89
commit
77b313611e
@@ -29,7 +29,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
|
|
||||||
// Classic production queues are initialized at game start, and then never change.
|
// Classic production queues are initialized at game start, and then never change.
|
||||||
var queues = world.LocalPlayer.PlayerActor.TraitsImplementing<ProductionQueue>()
|
var queues = world.LocalPlayer.PlayerActor.TraitsImplementing<ProductionQueue>()
|
||||||
.Where(q => q.Info.Type == button.ProductionGroup)
|
.Where(q => (q.Info.Group ?? q.Info.Type) == button.ProductionGroup)
|
||||||
.ToArray();
|
.ToArray();
|
||||||
|
|
||||||
Action<bool> selectTab = reverse =>
|
Action<bool> selectTab = reverse =>
|
||||||
|
|||||||
Reference in New Issue
Block a user