aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/script_manager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/zvision/script_manager.cpp b/engines/zvision/script_manager.cpp
index 5c0e336a5d..3ca9f01adc 100644
--- a/engines/zvision/script_manager.cpp
+++ b/engines/zvision/script_manager.cpp
@@ -216,9 +216,6 @@ void ScriptManager::changeLocationIntern() {
// Revert to the idle cursor
_engine->getCursorManager()->revertToIdle();
- // Change the background position
- _engine->getRenderManager()->setBackgroundPosition(_nextLocation.offset);
-
// Reset the background velocity
_engine->getRenderManager()->setBackgroundVelocity(0);
@@ -226,6 +223,9 @@ void ScriptManager::changeLocationIntern() {
Common::String fileName = Common::String::format("%c%c%c%c.scr", _nextLocation.world, _nextLocation.room, _nextLocation.node, _nextLocation.view);
parseScrFile(fileName);
+ // Change the background position
+ _engine->getRenderManager()->setBackgroundPosition(_nextLocation.offset);
+
// Create the puzzle reference table
createReferenceTable();