Refactored ProductionQueue to support different production styles.

This commit is contained in:
Andre Mohren
2018-09-28 22:54:18 +02:00
committed by abcdefg30
parent 6cd1919cca
commit 3bfcecd539
13 changed files with 98 additions and 82 deletions

View File

@@ -149,7 +149,7 @@ namespace OpenRA.Mods.Common.Orders
public void Tick(World world)
{
if (queue.CurrentItem() == null || queue.CurrentItem().Item != actorInfo.Name)
if (queue.AllQueued().All(i => !i.Done || i.Item != actorInfo.Name))
world.CancelInputMode();
if (preview == null)