fixed #1264 - squish sound is positioned now

This commit is contained in:
Chris Forbes
2011-11-04 19:45:02 +13:00
parent 718742be4a
commit 6932db1d05

View File

@@ -44,7 +44,7 @@ namespace OpenRA.Mods.RA
public void OnCrush(Actor crusher) public void OnCrush(Actor crusher)
{ {
Sound.Play(Info.CrushSound); Sound.Play(Info.CrushSound, crusher.CenterLocation);
self.World.AddFrameEndTask(w => self.World.AddFrameEndTask(w =>
{ {
if (!self.Destroyed) if (!self.Destroyed)