Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AndywinXp committed Apr 21, 2024
1 parent 9a32dd2 commit 9daf6bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions engines/scumm/he/sprite_he.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2159,17 +2159,17 @@ static void syncWithSerializer(Common::Serializer &s, SpriteGroup &sg) {

static void syncWithSerializer(Common::Serializer &s, SpriteImageList &sil) {
for (int i = 0; i < ARRAYSIZE(sil.list); i++) {
s.syncAsSint16LE(sil.list[i], VER(118));
s.syncAsSint16LE(sil.list[i], VER(119));
}

s.syncAsSint16LE(sil.count, VER(118));
s.syncAsSint16LE(sil.count, VER(119));
}

void Sprite::saveLoadWithSerializer(Common::Serializer &s) {
if (s.getVersion() >= VER(64)) {
s.syncArray(_spriteTable, _maxSprites + 1, syncWithSerializer);
s.syncArray(_groupTable, _maxSpriteGroups + 1, syncWithSerializer);
if (s.getVersion() >= VER(118)) {
if (s.getVersion() >= VER(119)) {
s.syncArray(_imageLists, _maxImageLists + 1, syncWithSerializer);
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions engines/scumm/saveload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct SaveInfoSection {

#define SaveInfoSectionSize (4+4+4 + 4+4 + 4+2)

#define CURRENT_VER 118
#define CURRENT_VER 119
#define INFOSECTION_VERSION 2

#pragma mark -
Expand Down Expand Up @@ -2269,7 +2269,7 @@ void syncWithSerializer(Common::Serializer &s, FloodFillCommand &ffc) {
s.syncAsSint32LE(ffc.y, VER(51));
s.syncAsSint32LE(ffc.flags, VER(51));
s.skip(4, VER(51), VER(62)); // color
s.syncAsSint32LE(ffc.color, VER(118));
s.syncAsSint32LE(ffc.color, VER(119));
}

void ScummEngine_v90he::saveLoadWithSerializer(Common::Serializer &s) {
Expand Down

0 comments on commit 9daf6bc

Please sign in to comment.