aboutsummaryrefslogtreecommitdiff
path: root/scumm/saveload.cpp
diff options
context:
space:
mode:
authorMax Horn2003-09-09 17:29:22 +0000
committerMax Horn2003-09-09 17:29:22 +0000
commit07e8084eee1b0397b78aa6ee300855d1a1963503 (patch)
treeabe08649eb0c43447e68a28c186a618d57f2b9c5 /scumm/saveload.cpp
parent163ecdc05406edd90dd4b336f23a8853a4b518d8 (diff)
downloadscummvm-rg350-07e8084eee1b0397b78aa6ee300855d1a1963503.tar.gz
scummvm-rg350-07e8084eee1b0397b78aa6ee300855d1a1963503.tar.bz2
scummvm-rg350-07e8084eee1b0397b78aa6ee300855d1a1963503.zip
replaced all use of scale items with scale slots. This allowed me to get rid of two big FIXME's, and might fix other scaling bugs in FT/DIG
svn-id: r10140
Diffstat (limited to 'scumm/saveload.cpp')
-rw-r--r--scumm/saveload.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp
index 5e06e851bd..89be05d0db 100644
--- a/scumm/saveload.cpp
+++ b/scumm/saveload.cpp
@@ -658,6 +658,15 @@ void Scumm::saveOrLoad(Serializer *s, uint32 savegameVersion) {
}
}
+ // With version 22, we replace the scale items with scale slots
+ if (savegameVersion < VER(22) && !s->isSaving()) {
+ // Convert all rtScaleTable resources to matching scale items
+ for (i = 1; i < res.num[rtScaleTable]; i++) {
+ convertScaleTableToScaleSlot(i);
+ }
+ }
+
+
if (_imuse && (_saveSound || !_saveLoadCompatible)) {
_imuse->save_or_load(s, this);
_imuse->setMasterVolume(_sound->_sound_volume_master);