positional sound!

This commit is contained in:
Chris Forbes
2010-05-12 21:39:49 +12:00
parent 4bb268075c
commit dd52aa1728
19 changed files with 60 additions and 29 deletions

View File

@@ -39,7 +39,7 @@ namespace OpenRA.Mods.Cnc
{
Owner.World.AddFrameEndTask(w =>
{
Sound.Play(Info.LaunchSound);
Sound.Play(Info.LaunchSound, Game.CellSize * order.TargetLocation.ToFloat2());
w.Add(new IonCannon(self, w, order.TargetLocation));
});