Merge pull request #10003 from r34ch/mute-setting

Mute setting
This commit is contained in:
Oliver Brakmann
2015-12-28 14:07:27 +01:00
12 changed files with 106 additions and 4 deletions

View File

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