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
This commit is contained in:
Paul Gilbert 2009-05-15 07:03:56 +00:00
parent 464b8cc7f3
commit adaa0472c5

View file

@ -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);