Add mute option to the game

This commit is contained in:
DArcy Rush
2015-11-14 22:36:41 +00:00
parent 3474da0ecc
commit 67f88e368f
12 changed files with 106 additions and 4 deletions

View File

@@ -199,6 +199,9 @@ namespace OpenRA.Platforms.Default
if (source == -1)
return null;
if (Game.Settings.Sound.Mute)
Game.Sound.MuteAudio();
var slot = sourcePool[source];
slot.Pos = pos;
slot.FrameStarted = currFrame;