aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/introproc_ihnm.cpp
diff options
context:
space:
mode:
authorChristopher Page2008-07-11 01:09:48 +0000
committerChristopher Page2008-07-11 01:09:48 +0000
commitcbadb51ce75f2ec599203433b50c9d4bf5f51728 (patch)
treefc5cdb2364cb82505001d62c2d53ed2edd2d9052 /engines/saga/introproc_ihnm.cpp
parent67c8c39fdf4ae01c0d4a1c6ce97afd720eb4be4e (diff)
downloadscummvm-rg350-cbadb51ce75f2ec599203433b50c9d4bf5f51728.tar.gz
scummvm-rg350-cbadb51ce75f2ec599203433b50c9d4bf5f51728.tar.bz2
scummvm-rg350-cbadb51ce75f2ec599203433b50c9d4bf5f51728.zip
SAGA works with new GMM implementation
svn-id: r33000
Diffstat (limited to 'engines/saga/introproc_ihnm.cpp')
-rw-r--r--engines/saga/introproc_ihnm.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/saga/introproc_ihnm.cpp b/engines/saga/introproc_ihnm.cpp
index 6614f4098f..079b355826 100644
--- a/engines/saga/introproc_ihnm.cpp
+++ b/engines/saga/introproc_ihnm.cpp
@@ -59,8 +59,12 @@ int Scene::IHNMStartProc() {
// Play Cyberdreams logo for 168 frames
if (!playTitle(0, logoLength, true)) {
+ if (_vm->quit())
+ return !SUCCESS;
// Play Dreamers Guild logo for 10 seconds
if (!playLoopingTitle(1, 10)) {
+ if (_vm->quit())
+ return !SUCCESS;
// Play the title music
_vm->_music->play(1, MUSIC_NORMAL);
// Play title screen
@@ -70,6 +74,8 @@ int Scene::IHNMStartProc() {
} else {
_vm->_music->play(1, MUSIC_NORMAL);
playTitle(0, 10);
+ if (_vm->quit())
+ return !SUCCESS;
playTitle(2, 12);
}
@@ -144,7 +150,6 @@ bool Scene::checkKey() {
switch (event.type) {
case Common::EVENT_QUIT:
res = true;
- _vm->shutDown();
break;
case Common::EVENT_KEYDOWN:
// Don't react to modifier keys alone. The original did
@@ -187,7 +192,7 @@ bool Scene::playTitle(int title, int time, int mode) {
_vm->_gfx->getCurrentPal(pal_cut);
- while (!done) {
+ while (!done && !_vm->quit()) {
curTime = _vm->_system->getMillis();
switch (phase) {