aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--queen/cutaway.cpp6
-rw-r--r--queen/logic.cpp2
2 files changed, 7 insertions, 1 deletions
diff --git a/queen/cutaway.cpp b/queen/cutaway.cpp
index 24066ea158..7b32566172 100644
--- a/queen/cutaway.cpp
+++ b/queen/cutaway.cpp
@@ -99,6 +99,7 @@ void Cutaway::load(const char *filename) {
_comPanel = READ_BE_UINT16(ptr);
ptr += 2;
+ debug(0, "_comPanel = %i", _comPanel);
_cutawayObjectCount = (int16)READ_BE_UINT16(ptr);
ptr += 2;
@@ -1305,7 +1306,10 @@ void Cutaway::run(char *nextFilename) {
talk(nextFilename);
- if (_comPanel == 0 || (_comPanel == 2 && !_anotherCutaway)) {
+ // XXX removed the condition because otherwise sceneStop is not always
+ // executed in pair with sceneStart. */
+
+ if (_comPanel == 0 || (_comPanel == 2 /*&& !_anotherCutaway*/)) {
_logic->sceneStop(true);
_comPanel = 0;
}
diff --git a/queen/logic.cpp b/queen/logic.cpp
index 33d8020835..735bd088f8 100644
--- a/queen/logic.cpp
+++ b/queen/logic.cpp
@@ -2496,6 +2496,7 @@ bool Logic::gameLoad(uint16 slot) {
}
void Logic::sceneStart(bool showMouseCursor) {
+ debug(0, "[Logic::sceneStart] _scene = %i", _scene);
_scene++;
_display->mouseCursorShow(showMouseCursor);
@@ -2509,6 +2510,7 @@ void Logic::sceneStart(bool showMouseCursor) {
}
void Logic::sceneStop(bool showMouseCursor) {
+ debug(0, "[Logic::sceneStop] _scene = %i", _scene);
_scene--;
if (_scene > 0)