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

@@ -51,7 +51,7 @@ namespace OpenRA.Traits
var building = w.CreateActor( order.TargetString, t, order.Player );
if( playSounds )
foreach( var s in building.Info.Traits.Get<BuildingInfo>().BuildSounds )
Sound.PlayToPlayer( order.Player, s );
Sound.PlayToPlayer( order.Player, s, self.CenterLocation );
playSounds = false;
}
}
@@ -59,7 +59,7 @@ namespace OpenRA.Traits
{
var building = w.CreateActor( order.TargetString, order.TargetLocation, order.Player );
foreach (var s in building.Info.Traits.Get<BuildingInfo>().BuildSounds)
Sound.PlayToPlayer(order.Player, s);
Sound.PlayToPlayer(order.Player, s, self.CenterLocation);
}
var facts = w.Queries.OwnedBy[self.Owner]