aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular/dialogs_nebular.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-07-27 22:23:49 -0400
committerPaul Gilbert2014-07-27 22:23:49 -0400
commit7416a4f4b2eb66af6e9472618973abc93eeb94de (patch)
tree11f63dd401b8bcd7750a9f26f6d843a87e72e377 /engines/mads/nebular/dialogs_nebular.cpp
parent6e27b523c0a633e7a4c9458bfed64b1c24666a65 (diff)
downloadscummvm-rg350-7416a4f4b2eb66af6e9472618973abc93eeb94de.tar.gz
scummvm-rg350-7416a4f4b2eb66af6e9472618973abc93eeb94de.tar.bz2
scummvm-rg350-7416a4f4b2eb66af6e9472618973abc93eeb94de.zip
MADS: Beginnings of exit advert view
Diffstat (limited to 'engines/mads/nebular/dialogs_nebular.cpp')
-rw-r--r--engines/mads/nebular/dialogs_nebular.cpp8
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;
}