Blood: store parallax sky info in savegame

# Conflicts:
#	source/blood/src/loadsave.cpp
This commit is contained in:
nukeykt 2020-02-27 23:30:44 +09:00 committed by Christoph Oelckers
parent 9d934d22b2
commit d7f9a5acee
2 changed files with 7 additions and 1 deletions

View file

@ -34,7 +34,7 @@ BEGIN_BLD_NS
#define BLOODWIDESCREENDEF "blood_widescreen.def"
#define BYTEVERSION 102
#define BYTEVERSION 103
#define EXEVERSION 101
void _SetErrorLoc(const char *pzFile, int nLine);

View file

@ -720,6 +720,10 @@ void MyLoadSave::Load(void)
#ifdef NOONE_EXTENSIONS
Read(&gModernMap, sizeof(gModernMap));
#endif
psky_t skyInfo;
Read(&skyInfo, sizeof(skyInfo));
*tileSetupSky(0) = skyInfo;
gCheatMgr.sub_5BCF4();
}
@ -807,6 +811,8 @@ void MyLoadSave::Save(void)
#ifdef NOONE_EXTENSIONS
Write(&gModernMap, sizeof(gModernMap));
#endif
psky_t skyInfo = *tileSetupSky(0);
Write(&skyInfo, sizeof(skyInfo));
}
void LoadSavedInfo(void)