Fix #6293: Screenshot sound not played when the game is paused (#6429)

Stop all sounds when pausing the game, but allow new sounds to play.
This allows interface sounds to function while paused, which fixes #6293.
This commit is contained in:
Mike Slone 2017-11-16 15:02:16 -08:00 committed by Ted John
parent 271f15328b
commit aca7048377
2 changed files with 2 additions and 3 deletions

View File

@ -46,6 +46,7 @@
- Fix: [#6251] Splash Boats renders flat-to-25-degree pieces in tunnels incorrectly.
- Fix: [#6261, #6344, #6520] Broken pathfinding after removing park entrances with the tile inspector.
- Fix: [#6271] Wrong booster speed tooltip text.
- Fix: [#6293] Restored interface sounds while gameplay is paused.
- Fix: [#6301] Track list freezes after deleting track in Track Manager.
- Fix: [#6308] Cannot create title sequence if title sequences folder does not exist.
- Fix: [#6318] Cannot sack staff that have not been placed

View File

@ -906,9 +906,7 @@ void pause_toggle()
gGamePaused ^= GAME_PAUSED_NORMAL;
window_invalidate_by_class(WC_TOP_TOOLBAR);
if (gGamePaused & GAME_PAUSED_NORMAL) {
audio_pause_sounds();
} else {
audio_unpause_sounds();
audio_stop_all_music_and_sounds();
}
}