ZVISION: Set the background position after the .scr file has been parsed so we know the RenderState

This commit is contained in:
richiesams 2013-08-17 09:47:05 -05:00
parent e769164f79
commit b22ed391fe

View file

@ -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();