don't hide the pause button after unpause

This commit is contained in:
Matthias Mailänder
2013-07-25 23:30:27 +02:00
parent fa84f1906f
commit 06233a76a8

View File

@@ -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);
}
}