aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula
diff options
context:
space:
mode:
authorThierry Crozat2016-04-10 21:11:06 +0100
committerThierry Crozat2016-04-10 21:22:07 +0100
commit1be77fc766689ba8310e4f49440d924465770784 (patch)
treede53092847ccc364daac83369e8e529b80fde1aa /engines/drascula
parent3e568910c83a3922e25f523fdf23c7b3e2409e7f (diff)
downloadscummvm-rg350-1be77fc766689ba8310e4f49440d924465770784.tar.gz
scummvm-rg350-1be77fc766689ba8310e4f49440d924465770784.tar.bz2
scummvm-rg350-1be77fc766689ba8310e4f49440d924465770784.zip
DRASCULA: Fix loading games in room 102 when still chained
Room 102 has two states. The first one has an animation of a pendulum while the protagonist is chained to a table beneath it. The second state is after the protagonist free himself. In the second state the pendulum has stopped. When saving in the first state, loading the save game did not properly setup the pendulum animation causing graphic glitches. This fixes bug #7113 DRASCULA: Serious sprite glitches
Diffstat (limited to 'engines/drascula')
-rw-r--r--engines/drascula/drascula.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp
index 9ac9031fb7..358aecc295 100644
--- a/engines/drascula/drascula.cpp
+++ b/engines/drascula/drascula.cpp
@@ -534,6 +534,10 @@ bool DrasculaEngine::runCurrentChapter() {
if (!loadGame(_currentSaveSlot)) {
return true;
}
+ // When loading room 102 while being attached below the pendulum we
+ // need to call activatePendulum() to properly initialized the scene.
+ if (_roomNumber == 102 && flags[1] == 2)
+ activatePendulum();
loadPic("auxdr.alg", drawSurface2);
}
}