Fix Cloak.UncloakSound not being used.

This commit is contained in:
Paul Chote
2023-11-15 16:41:31 +00:00
committed by Gustas
parent ac6934405e
commit 9f196f2693

View File

@@ -227,7 +227,7 @@ namespace OpenRA.Mods.Common.Traits
if (!(firstTick && Info.InitialDelay == 0) && (otherCloaks == null || !otherCloaks.Any(a => a.Cloaked)))
{
var pos = self.CenterPosition;
Game.Sound.Play(SoundType.World, Info.CloakSound, pos);
Game.Sound.Play(SoundType.World, Info.UncloakSound, pos);
Func<WPos> posfunc = () => self.CenterPosition + Info.EffectOffset;
if (!Info.EffectTracksActor)