Add PlayLaunchSounds() to SupportPowers which are missing it.

This commit is contained in:
Mustafa Alperen Seki
2020-01-31 16:16:58 +03:00
committed by reaperrr
parent 85a5b6cc17
commit 6ab0ace9e1
5 changed files with 5 additions and 3 deletions

View File

@@ -68,6 +68,7 @@ namespace OpenRA.Mods.Common.Traits
public override void Activate(Actor self, Order order, SupportPowerManager manager)
{
base.Activate(self, order, manager);
PlayLaunchSounds();
var wsb = self.TraitOrDefault<WithSpriteBody>();
if (wsb != null && wsb.DefaultAnimation.HasSequence(info.Sequence))

View File

@@ -58,6 +58,7 @@ namespace OpenRA.Mods.Common.Traits
public override void Activate(Actor self, Order order, SupportPowerManager manager)
{
base.Activate(self, order, manager);
PlayLaunchSounds();
var info = Info as ProduceActorPowerInfo;
var producers = self.World.ActorsWithTrait<Production>()