fixed taking over sam/pillbox/etc. to stop firing

fixed issue with powered down samsites

more optimization

very small optimization

undo changes to powerdown samsite fixes

refixed powered down sam sites

removed debug line

redid the fix in another approach by queueing a sell activity on the top of the queue. This was already present but didn't always work

fixed line I removed

prevented attack activity to be queued when actor is disabled

another style fail of me

reverse and queueactivity activities are now executed on top of the queue for a sell action
This commit is contained in:
pevers
2015-02-24 22:17:39 +01:00
parent 92101a1393
commit 17fec82348
5 changed files with 15 additions and 8 deletions

View File

@@ -53,9 +53,9 @@ namespace OpenRA.Mods.Common.Traits
var makeAnimation = self.TraitOrDefault<WithMakeAnimation>();
if (makeAnimation != null)
makeAnimation.Reverse(self, new Sell());
makeAnimation.Reverse(self, new Sell(), false);
else
self.QueueActivity(new Sell());
self.QueueActivity(false, new Sell());
}
}
}