aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
authorRobert Göffringmann2003-07-09 00:31:49 +0000
committerRobert Göffringmann2003-07-09 00:31:49 +0000
commitbae011dbd6c9cb599db7d6e6de6344929a1a6f10 (patch)
tree8319923916ba29b6226a0c4b2bd9b286d6276ea6 /sky
parent6c66bf2ee453a79f8d59b3c7eb495cf58b2a4220 (diff)
downloadscummvm-rg350-bae011dbd6c9cb599db7d6e6de6344929a1a6f10.tar.gz
scummvm-rg350-bae011dbd6c9cb599db7d6e6de6344929a1a6f10.tar.bz2
scummvm-rg350-bae011dbd6c9cb599db7d6e6de6344929a1a6f10.zip
script data is the same for 0.0365, 0.0368 and 0.0372, so allow switching saved games.
svn-id: r8874
Diffstat (limited to 'sky')
-rw-r--r--sky/control.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/sky/control.cpp b/sky/control.cpp
index e0a7a96de8..fa442c8577 100644
--- a/sky/control.cpp
+++ b/sky/control.cpp
@@ -1325,9 +1325,11 @@ uint16 SkyControl::parseSaveData(uint8 *srcBuf) {
if (saveRev >= 3) {
LODSD(srcPos, gameVersion);
if (gameVersion != SkyState::_systemVars.gameVersion) {
- printf("This savegame was created by Beneath a Steel Sky v0.0%03d\n", gameVersion);
- printf("It cannot be loaded by this version (v0.0%3d)\n", SkyState::_systemVars.gameVersion);
- return RESTORE_FAILED;
+ if (SkyState::isCDVersion() && (gameVersion >= 365)) { // cd versions are compatible
+ printf("This savegame was created by Beneath a Steel Sky v0.0%03d\n", gameVersion);
+ printf("It cannot be loaded by this version (v0.0%3d)\n", SkyState::_systemVars.gameVersion);
+ return RESTORE_FAILED;
+ }
}
LODSW(srcPos, _skySound->_saveSounds[0]);
LODSW(srcPos, _skySound->_saveSounds[1]);