aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichieSams2015-01-18 20:11:10 -0600
committerRichieSams2015-01-18 20:11:10 -0600
commit0fafb6a62c13f6f5a4ef6215a4be592ed84f248c (patch)
tree913309792fcaf397813cc5565e0c0cc47c1df3db
parentb835eacc0cd401bb0d15a33e60d2ac47ebb4d718 (diff)
downloadscummvm-rg350-0fafb6a62c13f6f5a4ef6215a4be592ed84f248c.tar.gz
scummvm-rg350-0fafb6a62c13f6f5a4ef6215a4be592ed84f248c.tar.bz2
scummvm-rg350-0fafb6a62c13f6f5a4ef6215a4be592ed84f248c.zip
Revert "ZVISION: Don't change location when coming back from ScummVM save dialog"
This reverts commit b835eacc0cd401bb0d15a33e60d2ac47ebb4d718.
-rw-r--r--engines/zvision/scripting/script_manager.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/engines/zvision/scripting/script_manager.cpp b/engines/zvision/scripting/script_manager.cpp
index a4ab4579b5..4792a02045 100644
--- a/engines/zvision/scripting/script_manager.cpp
+++ b/engines/zvision/scripting/script_manager.cpp
@@ -576,8 +576,11 @@ void ScriptManager::ChangeLocationReal() {
_nextLocation.node = _currentLocation.node;
_nextLocation.view = _currentLocation.view;
_nextLocation.offset = _currentLocation.offset;
-
- return;
+ _currentLocation.world = '0';
+ _currentLocation.room = '0';
+ _currentLocation.node = '0';
+ _currentLocation.view = '0';
+ _currentLocation.offset = 0;
} else {
return;
}
@@ -740,6 +743,11 @@ void ScriptManager::deserialize(Common::SeekableReadStream *stream) {
cleanScriptScope(room);
cleanScriptScope(world);
+ _currentLocation.node = 0;
+ _currentLocation.world = 0;
+ _currentLocation.room = 0;
+ _currentLocation.view = 0;
+
for (SideFXList::iterator iter = _activeSideFx.begin(); iter != _activeSideFx.end(); iter++) {
delete(*iter);
}