don't stack flashes and filter non unit actor related orders

This commit is contained in:
Matthias Mailänder
2013-11-02 18:26:45 +01:00
parent e0e3f1155a
commit 6b0238a6cc
2 changed files with 8 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Mods.RA
// Find the queue with the target actor
var queue = w.ActorsWithTrait<ProductionQueue>()
.Where(p => p.Actor.Owner == self.Owner &&
p.Trait.CurrentItem() != null &&
p.Trait.CurrentItem() != null &&
p.Trait.CurrentItem().Item == order.TargetString &&
p.Trait.CurrentItem().RemainingTime == 0)
.Select(p => p.Trait)