From 06233a76a8a11dc8f0e2c7e94900bc94c5a158aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 25 Jul 2013 23:30:27 +0200 Subject: [PATCH] don't hide the pause button after unpause --- OpenRA.Game/Sound.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/OpenRA.Game/Sound.cs b/OpenRA.Game/Sound.cs index 83b709ff45..1b56b3a947 100644 --- a/OpenRA.Game/Sound.cs +++ b/OpenRA.Game/Sound.cs @@ -165,12 +165,14 @@ namespace OpenRA if (m == currentMusic && music != null) { soundEngine.PauseSound(music, false); + MusicPlaying = true; return; } StopMusic(); var sound = sounds[m.Filename]; - if (sound == null) return; + if (sound == null) + return; music = soundEngine.Play2D(sound, false, true, float2.Zero, MusicVolume, false); currentMusic = m; @@ -570,7 +572,8 @@ namespace OpenRA public void PauseSound(ISound sound, bool paused) { - if (sound == null) return; + if (sound == null) + return; int key = ((OpenAlSound)sound).source; int state; @@ -591,7 +594,6 @@ namespace OpenRA Al.alSourcePause(key); else if (state == Al.AL_PAUSED && !paused) Al.alSourcePlay(key); - } }