Fix WithDeliveryAnimation overriding sell animation.

This commit is contained in:
Paul Chote
2020-12-05 13:50:18 +00:00
committed by abcdefg30
parent 6cac587753
commit f3ebe07540

View File

@@ -44,7 +44,9 @@ namespace OpenRA.Mods.Common.Traits.Render
public void Delivered(Actor self)
{
wsb.CancelCustomAnimation(self);
// Animation has already been cancelled by TraitDisabled below
if (!IsTraitDisabled)
wsb.CancelCustomAnimation(self);
}
protected override void TraitDisabled(Actor self)