added speech packages; successful local move orders now play sound
This commit is contained in:
@@ -33,6 +33,8 @@ namespace OpenRa.Game
|
||||
FileSystem.Mount(new Package("local.mix"));
|
||||
FileSystem.Mount(new Package("sounds.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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user