aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/scene.cpp
diff options
context:
space:
mode:
authorStrangerke2014-05-18 12:29:48 +0200
committerStrangerke2014-05-18 12:29:48 +0200
commite7bef9019a71105a19c9f4eff567b8df47387a8b (patch)
treed5e29787f0c703ad25fa99eabd0faca0c331e7d5 /engines/mads/scene.cpp
parentbc639c25c8f8e8f6a86235f59352851313753830 (diff)
downloadscummvm-rg350-e7bef9019a71105a19c9f4eff567b8df47387a8b.tar.gz
scummvm-rg350-e7bef9019a71105a19c9f4eff567b8df47387a8b.tar.bz2
scummvm-rg350-e7bef9019a71105a19c9f4eff567b8df47387a8b.zip
MADS: Implement scene 803, add an ongoingGame global flag to exit the multiple game loops
Diffstat (limited to 'engines/mads/scene.cpp')
-rw-r--r--engines/mads/scene.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp
index 601acc5ec6..3ef88fa630 100644
--- a/engines/mads/scene.cpp
+++ b/engines/mads/scene.cpp
@@ -255,7 +255,7 @@ void Scene::loadVocabStrings() {
}
void Scene::initPaletteAnimation(Common::Array<PaletteCycle> &palCycles, bool animFlag) {
- // Initialise the animation palette and ticks list
+ // Initialize the animation palette and ticks list
_cycleTicks.clear();
_paletteCycles.clear();
@@ -334,7 +334,7 @@ bool Scene::getDepthHighBits(const Common::Point &pt) {
}
void Scene::loop() {
- while (!_vm->shouldQuit() && !_reloadSceneFlag && _nextSceneId == _currentSceneId) {
+ while (!_vm->shouldQuit() && !_reloadSceneFlag && (_nextSceneId == _currentSceneId) && _vm->_game->_ongoingGame) {
// Handle drawing a game frame
doFrame();