Play all IonCannonPower launch sounds using the new helper method

This commit is contained in:
abcdefg30
2016-09-12 23:21:29 +02:00
parent 41bc3b20ba
commit 348249119a

View File

@@ -66,7 +66,7 @@ namespace OpenRA.Mods.Cnc.Traits
self.World.AddFrameEndTask(w => self.World.AddFrameEndTask(w =>
{ {
Game.Sound.Play(Info.LaunchSound); PlayLaunchSounds();
Game.Sound.Play(info.OnFireSound, self.World.Map.CenterOfCell(order.TargetLocation)); Game.Sound.Play(info.OnFireSound, self.World.Map.CenterOfCell(order.TargetLocation));
w.Add(new IonCannon(self.Owner, info.WeaponInfo, w, self.CenterPosition, order.TargetLocation, w.Add(new IonCannon(self.Owner, info.WeaponInfo, w, self.CenterPosition, order.TargetLocation,
info.Effect, info.EffectSequence, info.EffectPalette, info.WeaponDelay)); info.Effect, info.EffectSequence, info.EffectPalette, info.WeaponDelay));