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:
parent
464b8cc7f3
commit
adaa0472c5
1 changed files with 1 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue