aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2009-05-15 07:03:56 +0000
committerPaul Gilbert2009-05-15 07:03:56 +0000
commitadaa0472c5e64d0ff6cae12368ffdfa61b24d2f7 (patch)
tree2e4ec6551f56cfb9f87ef0d37ca7984f8555fabd /engines
parent464b8cc7f3cf1f6f80a562ea8eedf4dd47a54f4c (diff)
downloadscummvm-rg350-adaa0472c5e64d0ff6cae12368ffdfa61b24d2f7.tar.gz
scummvm-rg350-adaa0472c5e64d0ff6cae12368ffdfa61b24d2f7.tar.bz2
scummvm-rg350-adaa0472c5e64d0ff6cae12368ffdfa61b24d2f7.zip
Bugfix to saving the width of a cached background area - the previous code was, for some reason, saving the width divided by 2.. this was causing corruptions during reload for cached areas with an odd horizontal width
svn-id: r40595
Diffstat (limited to 'engines')
-rw-r--r--engines/cruise/saveload.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/cruise/saveload.cpp b/engines/cruise/saveload.cpp
index dba4041727..62db18923a 100644
--- a/engines/cruise/saveload.cpp
+++ b/engines/cruise/saveload.cpp
@@ -459,11 +459,7 @@ static void syncIncrust(Common::Serializer &s) {
s.syncAsSint16LE(t->scriptNumber);
s.syncAsSint16LE(t->scriptOverlayIdx);
s.syncAsUint32LE(dummyLong);
-
- int tmp = t->saveWidth / 2;
- s.syncAsSint16LE(tmp);
- t->saveWidth = tmp * 2;
-
+ s.syncAsSint16LE(t->saveWidth);
s.syncAsSint16LE(t->saveHeight);
s.syncAsSint16LE(t->saveSize);
s.syncAsSint16LE(t->savedX);