mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 01:15:58 +00:00
AVALANCHE: Fix savegames compatibility before/after Nim implementation
This commit is contained in:
parent
13449472f2
commit
84e99ae652
@ -60,7 +60,7 @@ struct AvalancheGameDescription {
|
||||
ADGameDescription desc;
|
||||
};
|
||||
|
||||
static const int kSavegameVersion = 1;
|
||||
static const int kSavegameVersion = 2;
|
||||
|
||||
enum Pitch {
|
||||
kPitchInvalid,
|
||||
|
@ -43,6 +43,9 @@ void Nim::resetVariables() {
|
||||
}
|
||||
|
||||
void Nim::synchronize(Common::Serializer &sz) {
|
||||
if (sz.isLoading() && sz.getVersion() < 2)
|
||||
return;
|
||||
|
||||
sz.syncAsByte(_playedNim);
|
||||
}
|
||||
|
||||
|
@ -2471,6 +2471,10 @@ void Parser::synchronize(Common::Serializer &sz) {
|
||||
sz.syncAsByte(_wearing);
|
||||
sz.syncAsByte(_sworeNum);
|
||||
sz.syncAsByte(_alcoholLevel);
|
||||
if (sz.isLoading() && sz.getVersion() < 2) {
|
||||
int dummy;
|
||||
sz.syncAsByte(dummy);
|
||||
}
|
||||
sz.syncAsByte(_boughtOnion);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user