mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-04 07:03:13 +00:00
Merge branch 'fix-pause-refocus-mute' into 'master'
Fix pausing then refocusing the window causing the music to stay muted See merge request KartKrew/Kart-Public!244
This commit is contained in:
commit
57cebd383f
1 changed files with 1 additions and 2 deletions
|
|
@ -624,8 +624,7 @@ static void Impl_HandleWindowEvent(SDL_WindowEvent evt)
|
||||||
// Tell game we got focus back, resume music if necessary
|
// Tell game we got focus back, resume music if necessary
|
||||||
window_notinfocus = false;
|
window_notinfocus = false;
|
||||||
|
|
||||||
if (!paused)
|
S_InitMusicVolume();
|
||||||
S_InitMusicVolume();
|
|
||||||
|
|
||||||
if (cv_gamesounds.value)
|
if (cv_gamesounds.value)
|
||||||
S_EnableSound();
|
S_EnableSound();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue