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