[Scummvm-cvs-logs] SF.net SVN: scummvm:[36275] scummvm/branches/branch-0-13-0/engines/scumm
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Thu Feb 12 00:25:13 CET 2009
Revision: 36275
http://scummvm.svn.sourceforge.net/scummvm/?rev=36275&view=rev
Author: Kirben
Date: 2009-02-11 23:25:12 +0000 (Wed, 11 Feb 2009)
Log Message:
-----------
Restore correct camera values for old saves games of FT, Dig, and COMI.
Modified Paths:
--------------
scummvm/branches/branch-0-13-0/engines/scumm/saveload.cpp
scummvm/branches/branch-0-13-0/engines/scumm/saveload.h
Modified: scummvm/branches/branch-0-13-0/engines/scumm/saveload.cpp
===================================================================
--- scummvm/branches/branch-0-13-0/engines/scumm/saveload.cpp 2009-02-11 23:22:52 UTC (rev 36274)
+++ scummvm/branches/branch-0-13-0/engines/scumm/saveload.cpp 2009-02-11 23:25:12 UTC (rev 36275)
@@ -362,6 +362,17 @@
_scummVars[VAR_CAMERA_ACCEL_Y] = _scummVars[110];
}
+ // For a long time, we used incorrect values for some camera related
+ // scumm vars. We now know the proper values. To be able to properly use
+ // old save games, we update the old (bad) values to the new (correct)
+ // ones.
+ if (hdr.ver < VER(77) && _game.version >= 7) {
+ _scummVars[VAR_CAMERA_THRESHOLD_X] = 100;
+ _scummVars[VAR_CAMERA_THRESHOLD_Y] = 70;
+ _scummVars[VAR_CAMERA_ACCEL_X] = 100;
+ _scummVars[VAR_CAMERA_ACCEL_Y] = 100;
+ }
+
// With version 22, we replaced the scale items with scale slots. So when
// loading such an old save game, try to upgrade the old to new format.
if (hdr.ver < VER(22)) {
Modified: scummvm/branches/branch-0-13-0/engines/scumm/saveload.h
===================================================================
--- scummvm/branches/branch-0-13-0/engines/scumm/saveload.h 2009-02-11 23:22:52 UTC (rev 36274)
+++ scummvm/branches/branch-0-13-0/engines/scumm/saveload.h 2009-02-11 23:25:12 UTC (rev 36275)
@@ -50,7 +50,7 @@
* only saves/loads those which are valid for the version of the savegame
* which is being loaded/saved currently.
*/
-#define CURRENT_VER 76
+#define CURRENT_VER 77
/**
* An auxillary macro, used to specify savegame versions. We use this instead
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list