From 0fe3ae711a4a2fb20e6fb23664b18cdda8400c9b Mon Sep 17 00:00:00 2001 From: richiesams Date: Wed, 14 Aug 2013 10:45:39 -0500 Subject: ZVISION: Add cursor and background image resets during location change --- engines/zvision/script_manager.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'engines/zvision') diff --git a/engines/zvision/script_manager.cpp b/engines/zvision/script_manager.cpp index 93564ee6ad..6aaf5773e0 100644 --- a/engines/zvision/script_manager.cpp +++ b/engines/zvision/script_manager.cpp @@ -28,6 +28,8 @@ #include "zvision/zvision.h" #include "zvision/script_manager.h" +#include "zvision/render_manager.h" +#include "zvision/cursor_manager.h" #include "zvision/actions.h" #include "zvision/action_node.h" #include "zvision/utility.h" @@ -211,6 +213,15 @@ void ScriptManager::changeLocationIntern() { _activeControls.clear(); _engine->clearAllMouseEvents(); + // Revert to the idle cursor + _engine->getCursorManager()->revertToIdle(); + + // Change the background position + _engine->getRenderManager()->setBackgroundPosition(_nextLocation.x); + + // Reset the background velocity + _engine->getRenderManager()->setBackgroundVelocity(0); + // Parse into puzzles and controls Common::String fileName = Common::String::format("%c%c%c%c.scr", _nextLocation.world, _nextLocation.room, _nextLocation.node, _nextLocation.view); parseScrFile(fileName); -- cgit v1.2.3