mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Fix regression with regaining focus resuming music
Since you've been able to resume music stopped by stopmusic() with resumemusic(), if a track was stopped by stopmusic(), the unfocus pause itself would end up resuming the track when regaining focus. The solution is to simply check for if music.currentsong is -1 or not.
This commit is contained in:
parent
208382a8d1
commit
8bade56841
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ void KeyPoll::Poll(void)
|
|||
if (!game.disablepause)
|
||||
{
|
||||
isActive = true;
|
||||
if (!game.disableaudiopause || !game.disabletemporaryaudiopause)
|
||||
if ((!game.disableaudiopause || !game.disabletemporaryaudiopause) && music.currentsong != -1)
|
||||
{
|
||||
music.resume();
|
||||
music.resumeef();
|
||||
|
|
Loading…
Reference in a new issue