unit lost sound when local player's units die

This commit is contained in:
Chris Forbes
2009-10-22 23:48:19 +13:00
parent 8249951b27
commit 7d1f7670b9
2 changed files with 4 additions and 1 deletions

View File

@@ -98,6 +98,9 @@ namespace OpenRa.Game
Game.world.AddFrameEndTask(w => w.Remove(this));
if (Owner == Game.LocalPlayer)
Game.PlaySound("unitlst1.aud", false);
/* todo: explosion */
}
}

View File

@@ -23,7 +23,7 @@ namespace OpenRa.Game
public static WorldRenderer worldRenderer;
public static Controller controller;
static int localPlayerIndex = 0;
static int localPlayerIndex = 1;
public static Dictionary<int, Player> players = new Dictionary<int, Player>();