Sound is now paused when displaying menu dialogs

svn-id: r29272
This commit is contained in:
Paul Gilbert 2007-10-28 03:34:10 +00:00
parent 5f1ef91820
commit 641ff5e9b7
2 changed files with 12 additions and 2 deletions

View file

@ -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)