diff options
Diffstat (limited to 'engines/mads/nebular/dialogs_nebular.cpp')
-rw-r--r-- | engines/mads/nebular/dialogs_nebular.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp index a3cc1b754a..d4b277d856 100644 --- a/engines/mads/nebular/dialogs_nebular.cpp +++ b/engines/mads/nebular/dialogs_nebular.cpp @@ -270,7 +270,7 @@ bool DialogsNebular::commandCheck(const char *idStr, Common::String &valStr, } void DialogsNebular::showDialog() { - while (_pendingDialog != DIALOG_NONE) { + while (_pendingDialog != DIALOG_NONE && !_vm->shouldQuit()) { DialogId dialogId = _pendingDialog; _pendingDialog = DIALOG_NONE; @@ -307,6 +307,12 @@ void DialogsNebular::showDialog() { delete dlg; break; } + case DIALOG_ADVERT: { + AdvertView *dlg = new AdvertView(_vm); + dlg->show(); + delete dlg; + break; + } default: break; } |