Sound is now paused when displaying menu dialogs
svn-id: r29272
This commit is contained in:
parent
5f1ef91820
commit
641ff5e9b7
2 changed files with 12 additions and 2 deletions
|
@ -719,6 +719,7 @@ bool SaveRestoreDialog::show(bool saveDialog) {
|
|||
s->copyTo(&screen.screen(), SAVE_DIALOG_X, SAVE_DIALOG_Y);
|
||||
screen.update();
|
||||
mouse.pushCursorNum(CURSOR_ARROW);
|
||||
Sound.pause();
|
||||
|
||||
bool abortFlag = false;
|
||||
bool doneFlag = false;
|
||||
|
@ -801,6 +802,8 @@ bool SaveRestoreDialog::show(bool saveDialog) {
|
|||
doneFlag = true;
|
||||
}
|
||||
|
||||
Sound.resume();
|
||||
|
||||
if (doneFlag) {
|
||||
// Handle save or restore
|
||||
if (saveDialog)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue