Fix locking an airfield that is rearming aircraft while being sold

This commit is contained in:
Oliver Brakmann
2016-09-18 13:16:30 +02:00
parent ec7a236dbd
commit ab8c1403a8
4 changed files with 63 additions and 3 deletions

View File

@@ -59,9 +59,8 @@ namespace OpenRA.Mods.Common.Activities
if (!pool.GiveAmmo())
continue;
var wsb = hostBuilding.Trait<WithSpriteBody>();
if (wsb.DefaultAnimation.HasSequence("active"))
wsb.PlayCustomAnimation(hostBuilding, "active", () => wsb.CancelCustomAnimation(hostBuilding));
foreach (var host in hostBuilding.TraitsImplementing<INotifyRearm>())
host.Rearming(hostBuilding, self);
var sound = pool.Info.RearmSound;
if (sound != null)