ZVISION: Set the background position after the .scr file has been parsed so we know the RenderState
This commit is contained in:
parent
e769164f79
commit
b22ed391fe
1 changed files with 3 additions and 3 deletions
|
@ -216,9 +216,6 @@ void ScriptManager::changeLocationIntern() {
|
||||||
// Revert to the idle cursor
|
// Revert to the idle cursor
|
||||||
_engine->getCursorManager()->revertToIdle();
|
_engine->getCursorManager()->revertToIdle();
|
||||||
|
|
||||||
// Change the background position
|
|
||||||
_engine->getRenderManager()->setBackgroundPosition(_nextLocation.offset);
|
|
||||||
|
|
||||||
// Reset the background velocity
|
// Reset the background velocity
|
||||||
_engine->getRenderManager()->setBackgroundVelocity(0);
|
_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);
|
Common::String fileName = Common::String::format("%c%c%c%c.scr", _nextLocation.world, _nextLocation.room, _nextLocation.node, _nextLocation.view);
|
||||||
parseScrFile(fileName);
|
parseScrFile(fileName);
|
||||||
|
|
||||||
|
// Change the background position
|
||||||
|
_engine->getRenderManager()->setBackgroundPosition(_nextLocation.offset);
|
||||||
|
|
||||||
// Create the puzzle reference table
|
// Create the puzzle reference table
|
||||||
createReferenceTable();
|
createReferenceTable();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue