Some of fixing #36

This commit is contained in:
alzeih
2010-08-14 20:11:03 +12:00
parent 8c39e372e3
commit 7a10ae3dea
6 changed files with 19 additions and 18 deletions

View File

@@ -81,7 +81,7 @@ namespace OpenRA.Mods.RA.Render
if (e.DamageState == DamageState.Dead)
{
var death = e.Warhead != null ? e.Warhead.InfDeath : 0;
Sound.PlayVoice("Die", self);
Sound.PlayVoice("Die", self, self.Owner.Country.Race);
self.World.AddFrameEndTask(w => w.Add(new Corpse(self, death)));
}
}