aboutsummaryrefslogtreecommitdiff
path: root/queen/cutaway.cpp
diff options
context:
space:
mode:
authorGregory Montoir2003-12-07 15:19:00 +0000
committerGregory Montoir2003-12-07 15:19:00 +0000
commit671b98b0cf9267c9d5ca070e6b6f306eba6b7cae (patch)
tree8afc217a51c13ead7ca6817a98b724ff492ed019 /queen/cutaway.cpp
parent4afcd1747c4c86afe0d35b6456476a57122d5743 (diff)
downloadscummvm-rg350-671b98b0cf9267c9d5ca070e6b6f306eba6b7cae.tar.gz
scummvm-rg350-671b98b0cf9267c9d5ca070e6b6f306eba6b7cae.tar.bz2
scummvm-rg350-671b98b0cf9267c9d5ca070e6b6f306eba6b7cae.zip
(temporary) fix for cutaway_41f / command_0x178 graphical glitches
svn-id: r11526
Diffstat (limited to 'queen/cutaway.cpp')
-rw-r--r--queen/cutaway.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/queen/cutaway.cpp b/queen/cutaway.cpp
index f642747166..dcc0881c49 100644
--- a/queen/cutaway.cpp
+++ b/queen/cutaway.cpp
@@ -983,6 +983,15 @@ void Cutaway::changeRooms(CutawayObject &object) {
_logic->oldRoom(_initialRoom);
+ // FIXME: this cutaway is played at the end of the command 0x178. This command
+ // setups some persons and associates bob slots to them. They should be hidden
+ // as their y coordinate is > 150, but they aren't ! A (temporary) workaround
+ // is to display the room with the panel area enabled.
+ int16 comPanel = _comPanel;
+ if (strcmp(_basename, "c41f") == 0 && _temporaryRoom == 106 && object.room == 41) {
+ comPanel = 1;
+ }
+
RoomDisplayMode mode;
if (!_logic->joeX() && !_logic->joeY()) {
@@ -996,7 +1005,7 @@ void Cutaway::changeRooms(CutawayObject &object) {
mode = RDM_FADE_JOE_XY;
}
- _logic->roomDisplay(_logic->currentRoom(), mode, object.scale, _comPanel, true);
+ _logic->roomDisplay(_logic->currentRoom(), mode, object.scale, comPanel, true);
_currentImage = _logic->numFrames();