Make CrateAction>Sound to play for everyone

This commit is contained in:
Mustafa Alperen Seki
2018-10-12 18:57:44 +03:00
committed by Paul Chote
parent 2dcd377aaf
commit 98006d3870

View File

@@ -78,7 +78,7 @@ namespace OpenRA.Mods.Common.Traits
public virtual void Activate(Actor collector)
{
Game.Sound.PlayToPlayer(SoundType.World, collector.Owner, Info.Sound);
Game.Sound.Play(SoundType.World, Info.Sound, self.CenterPosition);
if (!string.IsNullOrEmpty(Info.Notification))
Game.Sound.PlayNotification(self.World.Map.Rules, collector.Owner, "Speech",