aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorrichiesams2013-08-17 09:47:05 -0500
committerrichiesams2013-08-18 19:52:54 -0500
commitb22ed391fe35bd999060f5d3b7c87dcbfbca8ab4 (patch)
tree3cef77084a70a4a909ef50b1bc1d91a7693f8618 /engines
parente769164f791d19b69cbe7cb0be99fc474c562ed4 (diff)
downloadscummvm-rg350-b22ed391fe35bd999060f5d3b7c87dcbfbca8ab4.tar.gz
scummvm-rg350-b22ed391fe35bd999060f5d3b7c87dcbfbca8ab4.tar.bz2
scummvm-rg350-b22ed391fe35bd999060f5d3b7c87dcbfbca8ab4.zip
ZVISION: Set the background position after the .scr file has been parsed so we know the RenderState
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();