added speech packages; successful local move orders now play sound

This commit is contained in:
Chris Forbes
2009-10-14 20:16:30 +13:00
parent 1c7bf80166
commit 00cf322feb
2 changed files with 7 additions and 1 deletions

View File

@@ -33,6 +33,8 @@ namespace OpenRa.Game
FileSystem.Mount(new Package("local.mix")); FileSystem.Mount(new Package("local.mix"));
FileSystem.Mount(new Package("sounds.mix")); FileSystem.Mount(new Package("sounds.mix"));
FileSystem.Mount(new Package("speech.mix")); FileSystem.Mount(new Package("speech.mix"));
FileSystem.Mount(new Package("allies.mix"));
FileSystem.Mount(new Package("russian.mix"));
FormBorderStyle = FormBorderStyle.None; FormBorderStyle = FormBorderStyle.None;
BackColor = Color.Black; BackColor = Color.Black;

View File

@@ -102,7 +102,11 @@ namespace OpenRa.Game.Traits
public Order Order(Actor self, Game game, int2 xy) public Order Order(Actor self, Game game, int2 xy)
{ {
if (xy != toCell) if (xy != toCell)
{
if (game.LocalPlayer == self.Owner)
game.PlaySound("ackno.r00", false);
return new MoveOrder(self, xy); return new MoveOrder(self, xy);
}
return null; return null;
} }
} }