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

@@ -32,7 +32,9 @@ namespace OpenRa.Game
FileSystem.Mount(new Package("general.mix"));
FileSystem.Mount(new Package("local.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;
BackColor = Color.Black;

View File

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