From b22ed391fe35bd999060f5d3b7c87dcbfbca8ab4 Mon Sep 17 00:00:00 2001 From: richiesams Date: Sat, 17 Aug 2013 09:47:05 -0500 Subject: [PATCH] ZVISION: Set the background position after the .scr file has been parsed so we know the RenderState --- engines/zvision/script_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/zvision/script_manager.cpp b/engines/zvision/script_manager.cpp index 5c0e336a5db..3ca9f01adc7 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();