diff options
author | Willem Jan Palenstijn | 2011-12-29 14:39:43 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-12-29 14:39:43 +0100 |
commit | 73ebccc30a8cbfe0353efc8851e6c67fd62562ee (patch) | |
tree | a5b52307ebb934d1ad37435f310143116e063e8a /engines | |
parent | f5928496538100c793600575938f07d533d957b5 (diff) | |
download | scummvm-rg350-73ebccc30a8cbfe0353efc8851e6c67fd62562ee.tar.gz scummvm-rg350-73ebccc30a8cbfe0353efc8851e6c67fd62562ee.tar.bz2 scummvm-rg350-73ebccc30a8cbfe0353efc8851e6c67fd62562ee.zip |
DREAMWEB: Allow quit during ending
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/titles.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/dreamweb/titles.cpp b/engines/dreamweb/titles.cpp index 8b56ffc57e..aa0f3bd799 100644 --- a/engines/dreamweb/titles.cpp +++ b/engines/dreamweb/titles.cpp @@ -28,6 +28,8 @@ namespace DreamWeb { void DreamWebEngine::endGame() { loadTempText("DREAMWEB.T83"); monkSpeaking(); + if (_quitRequested) + return; gettingShot(); getRidOfTempText(); _volumeTo = 7; @@ -57,6 +59,8 @@ void DreamWebEngine::monkSpeaking() { do { waitForVSync(); + if (_quitRequested) + return; } while (_channel1Playing != 255); } } else { @@ -71,6 +75,8 @@ void DreamWebEngine::monkSpeaking() { clearWork(); showFrame(_tempGraphics, 160, 72, 0, 128); // show monk hangOnP(240); + if (_quitRequested) + return; } while (printResult != 0); } } @@ -251,7 +257,7 @@ void DreamWebEngine::runEndSeq() { dumpMap(); dumpTimedText(); vSync(); - } while (_getBack != 1); + } while (_getBack != 1 && !_quitRequested); } void DreamWebEngine::loadIntroRoom() { |