[Scummvm-cvs-logs] scummvm master -> 3a31e1de96a860b9f971cef939cb8a4aed8bcd5d
RichieSams
adastley at gmail.com
Mon Jan 19 03:23:05 CET 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
3a31e1de96 ZVISION: Don't change location when coming back from ScummVM save dialog and do change location when coming back from re
Commit: 3a31e1de96a860b9f971cef939cb8a4aed8bcd5d
https://github.com/scummvm/scummvm/commit/3a31e1de96a860b9f971cef939cb8a4aed8bcd5d
Author: RichieSams (adastley at gmail.com)
Date: 2015-01-18T20:22:02-06:00
Commit Message:
ZVISION: Don't change location when coming back from ScummVM save dialog and do change location when coming back from restore dialog
Fixes bug # 6771
We don't need to change locations, since we use the ScummVM save dialog instead
of the original one (which is actually a location). Instead we just need to reset _nextLocation to
_currentLocation so the engine can stop trying to save. If we change locations, the
StateKey_LastWorld/Room/etc. end up being overwritten with the current room. So if a script
refers to location 0, 0, 0, 0 (aka, the last room), the engine will try to change location to the same room.
On restore, we have to force a location change, just in case we restore to the same room. (Since the logic
will only do a location change if _nextLocation != _currentLocation)
Changed paths:
engines/zvision/scripting/script_manager.cpp
diff --git a/engines/zvision/scripting/script_manager.cpp b/engines/zvision/scripting/script_manager.cpp
index 4792a02..b45f17a 100644
--- a/engines/zvision/scripting/script_manager.cpp
+++ b/engines/zvision/scripting/script_manager.cpp
@@ -576,13 +576,14 @@ void ScriptManager::ChangeLocationReal() {
_nextLocation.node = _currentLocation.node;
_nextLocation.view = _currentLocation.view;
_nextLocation.offset = _currentLocation.offset;
- _currentLocation.world = '0';
+
+ return;
+ } else {
+ _currentLocation.world = 'g';
_currentLocation.room = '0';
_currentLocation.node = '0';
_currentLocation.view = '0';
_currentLocation.offset = 0;
- } else {
- return;
}
}
}
More information about the Scummvm-git-logs
mailing list