Fix #7473: Disable audio on focus loss not correct

Previously only muted the volume if sound effects was enabled, but ride music is also a possible source of sound.
This commit is contained in:
tombomp 2018-10-16 22:07:41 +01:00 committed by Michael Steenbeek
parent 6992be87c3
commit 38cc4692f6
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
- Feature: [#8078] Add save_park command to in-game console.
- Feature: [#8080] New console variable "current_rotation" to get or set view rotation.
- Fix: [#6191] OpenRCT2 fails to run when the path has an emoji in it.
- Fix: [#7473] Disabling sound effects also disables "Disable audio on focus loss".
- Fix: [#7828] Copied entrances and exits stay when demolishing ride.
- Fix: [#7945] Client IP address is logged as `(null)` in server logs.
- Fix: [#7954] Key validation fails on Windows due to non-ASCII user / player name.

View File

@ -352,7 +352,7 @@ public:
}
}
if (gConfigSound.audio_focus && gConfigSound.sound_enabled)
if (gConfigSound.audio_focus)
{
if (e.window.event == SDL_WINDOWEVENT_FOCUS_GAINED)
{