mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Blood: store parallax sky info in savegame
# Conflicts: # source/blood/src/loadsave.cpp
This commit is contained in:
parent
9d934d22b2
commit
d7f9a5acee
2 changed files with 7 additions and 1 deletions
|
@ -34,7 +34,7 @@ BEGIN_BLD_NS
|
||||||
|
|
||||||
#define BLOODWIDESCREENDEF "blood_widescreen.def"
|
#define BLOODWIDESCREENDEF "blood_widescreen.def"
|
||||||
|
|
||||||
#define BYTEVERSION 102
|
#define BYTEVERSION 103
|
||||||
#define EXEVERSION 101
|
#define EXEVERSION 101
|
||||||
|
|
||||||
void _SetErrorLoc(const char *pzFile, int nLine);
|
void _SetErrorLoc(const char *pzFile, int nLine);
|
||||||
|
|
|
@ -720,6 +720,10 @@ void MyLoadSave::Load(void)
|
||||||
#ifdef NOONE_EXTENSIONS
|
#ifdef NOONE_EXTENSIONS
|
||||||
Read(&gModernMap, sizeof(gModernMap));
|
Read(&gModernMap, sizeof(gModernMap));
|
||||||
#endif
|
#endif
|
||||||
|
psky_t skyInfo;
|
||||||
|
Read(&skyInfo, sizeof(skyInfo));
|
||||||
|
|
||||||
|
*tileSetupSky(0) = skyInfo;
|
||||||
gCheatMgr.sub_5BCF4();
|
gCheatMgr.sub_5BCF4();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -807,6 +811,8 @@ void MyLoadSave::Save(void)
|
||||||
#ifdef NOONE_EXTENSIONS
|
#ifdef NOONE_EXTENSIONS
|
||||||
Write(&gModernMap, sizeof(gModernMap));
|
Write(&gModernMap, sizeof(gModernMap));
|
||||||
#endif
|
#endif
|
||||||
|
psky_t skyInfo = *tileSetupSky(0);
|
||||||
|
Write(&skyInfo, sizeof(skyInfo));
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoadSavedInfo(void)
|
void LoadSavedInfo(void)
|
||||||
|
|
Loading…
Reference in a new issue