more positional sound

This commit is contained in:
Chris Forbes
2010-05-12 21:44:39 +12:00
parent dd52aa1728
commit 65c42ce9d7
4 changed files with 5 additions and 5 deletions

View File

@@ -54,7 +54,7 @@ namespace OpenRA.Traits.Activities
self.Health = 0;
self.World.Remove( self );
foreach (var s in sounds)
Sound.PlayToPlayer(self.Owner, s);
Sound.PlayToPlayer(self.Owner, s, self.CenterLocation);
var a = self.World.CreateActor( actor, self.Location + offset, self.Owner );
a.Health = newHealth;