don't hide the pause button after unpause
This commit is contained in:
@@ -165,12 +165,14 @@ namespace OpenRA
|
|||||||
if (m == currentMusic && music != null)
|
if (m == currentMusic && music != null)
|
||||||
{
|
{
|
||||||
soundEngine.PauseSound(music, false);
|
soundEngine.PauseSound(music, false);
|
||||||
|
MusicPlaying = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
StopMusic();
|
StopMusic();
|
||||||
|
|
||||||
var sound = sounds[m.Filename];
|
var sound = sounds[m.Filename];
|
||||||
if (sound == null) return;
|
if (sound == null)
|
||||||
|
return;
|
||||||
|
|
||||||
music = soundEngine.Play2D(sound, false, true, float2.Zero, MusicVolume, false);
|
music = soundEngine.Play2D(sound, false, true, float2.Zero, MusicVolume, false);
|
||||||
currentMusic = m;
|
currentMusic = m;
|
||||||
@@ -570,7 +572,8 @@ namespace OpenRA
|
|||||||
|
|
||||||
public void PauseSound(ISound sound, bool paused)
|
public void PauseSound(ISound sound, bool paused)
|
||||||
{
|
{
|
||||||
if (sound == null) return;
|
if (sound == null)
|
||||||
|
return;
|
||||||
|
|
||||||
int key = ((OpenAlSound)sound).source;
|
int key = ((OpenAlSound)sound).source;
|
||||||
int state;
|
int state;
|
||||||
@@ -591,7 +594,6 @@ namespace OpenRA
|
|||||||
Al.alSourcePause(key);
|
Al.alSourcePause(key);
|
||||||
else if (state == Al.AL_PAUSED && !paused)
|
else if (state == Al.AL_PAUSED && !paused)
|
||||||
Al.alSourcePlay(key);
|
Al.alSourcePlay(key);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user