aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui.cpp3
-rw-r--r--gui.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/gui.cpp b/gui.cpp
index dc2f115238..e9c21b4f62 100644
--- a/gui.cpp
+++ b/gui.cpp
@@ -950,6 +950,7 @@ void Gui::loop()
if (_active && !_inited) {
_inited = true;
draw(0, 200); // was 100
+ _old_soundsPaused = _s->_soundsPaused;
_s->pauseSounds(true);
// Backup old cursor
@@ -1004,7 +1005,7 @@ void Gui::close()
_s->_system->show_mouse(_old_cursor_mode);
- _s->pauseSounds(false);
+ _s->pauseSounds(_old_soundsPaused);
_active = false;
_inited = false;
diff --git a/gui.h b/gui.h
index 3a76aa429f..9805c2ce3e 100644
--- a/gui.h
+++ b/gui.h
@@ -60,6 +60,7 @@ protected:
byte _dialog;
int _clickWidget;
char *_queryMess;
+ bool _old_soundsPaused;
// mouse cursor state
bool _old_cursor_mode;