death sounds for infantry

This commit is contained in:
Chris Forbes
2009-12-20 18:18:11 +13:00
parent b08e1e9350
commit effc642c04
5 changed files with 21 additions and 3 deletions

View File

@@ -49,6 +49,12 @@ namespace OpenRa.Game
if (clip == null)
return;
if (clip.Contains(".")) /* no variants! */
{
Play(clip);
return;
}
var variants = (voicedUnit.Owner.Race == Race.Soviet)
? vi.SovietVariants : vi.AlliedVariants;