diff options
author | richiesams | 2013-08-14 10:45:39 -0500 |
---|---|---|
committer | richiesams | 2013-08-14 11:20:23 -0500 |
commit | 0fe3ae711a4a2fb20e6fb23664b18cdda8400c9b (patch) | |
tree | f271d8a07e60a10e324e88cf9a75e2aa430a89b3 /engines | |
parent | 6be19d850abd9123960c6f4bcf00ba73d5549953 (diff) | |
download | scummvm-rg350-0fe3ae711a4a2fb20e6fb23664b18cdda8400c9b.tar.gz scummvm-rg350-0fe3ae711a4a2fb20e6fb23664b18cdda8400c9b.tar.bz2 scummvm-rg350-0fe3ae711a4a2fb20e6fb23664b18cdda8400c9b.zip |
ZVISION: Add cursor and background image resets during location change
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/script_manager.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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); |