mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
SW: Add tailspritefree to savegames
git-svn-id: https://svn.eduke32.com/eduke32@8481 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/sw/src/save.cpp # source/sw/src/sounds.cpp
This commit is contained in:
parent
f10ea8e630
commit
acd56e319a
2 changed files with 5 additions and 11 deletions
|
@ -132,7 +132,9 @@ SWBOOL Global_PLock = TRUE;
|
|||
SWBOOL Global_PLock = FALSE;
|
||||
#endif
|
||||
|
||||
int GameVersion = 13; // 12 was original source release. For future releases increment by two.
|
||||
// 12 was original source release. For future releases increment by two.
|
||||
int GameVersion = 15;
|
||||
|
||||
char DemoText[3][64];
|
||||
int DemoTextYstart = 0;
|
||||
|
||||
|
|
|
@ -400,6 +400,7 @@ bool GameInterface::SaveGame(FSaveGameNode *sv)
|
|||
MWRITE(headspritestat,sizeof(headspritestat),1,fil);
|
||||
MWRITE(prevspritestat,sizeof(prevspritestat),1,fil);
|
||||
MWRITE(nextspritestat,sizeof(nextspritestat),1,fil);
|
||||
MWRITE(&tailspritefree,sizeof(tailspritefree),1,fil);
|
||||
|
||||
//User information
|
||||
for (i = 0; i < MAXSPRITES; i++)
|
||||
|
@ -492,11 +493,6 @@ bool GameInterface::SaveGame(FSaveGameNode *sv)
|
|||
MWRITE(Track[i].TrackPoint, Track[i].NumPoints * sizeof(TRACK_POINT),1,fil);
|
||||
}
|
||||
|
||||
int32_t svel = 0, vel = 0, angvel = 0;
|
||||
MWRITE(&vel,sizeof(vel),1,fil);
|
||||
MWRITE(&svel,sizeof(svel),1,fil);
|
||||
MWRITE(&angvel,sizeof(angvel),1,fil);
|
||||
|
||||
MWRITE(&loc,sizeof(loc),1,fil);
|
||||
//MWRITE(&oloc,sizeof(oloc),1,fil);
|
||||
//MWRITE(&fsync,sizeof(fsync),1,fil);
|
||||
|
@ -859,6 +855,7 @@ bool GameInterface::LoadGame(FSaveGameNode* sv)
|
|||
MREAD(headspritestat,sizeof(headspritestat),1,fil);
|
||||
MREAD(prevspritestat,sizeof(prevspritestat),1,fil);
|
||||
MREAD(nextspritestat,sizeof(nextspritestat),1,fil);
|
||||
MREAD(&tailspritefree,sizeof(tailspritefree),1,fil);
|
||||
|
||||
//User information
|
||||
memset(User, 0, sizeof(User));
|
||||
|
@ -955,11 +952,6 @@ bool GameInterface::LoadGame(FSaveGameNode* sv)
|
|||
}
|
||||
}
|
||||
|
||||
int32_t svel, vel, angvel;
|
||||
MREAD(&vel,sizeof(vel),1,fil);
|
||||
MREAD(&svel,sizeof(svel),1,fil);
|
||||
MREAD(&angvel,sizeof(angvel),1,fil);
|
||||
|
||||
MREAD(&loc,sizeof(loc),1,fil);
|
||||
|
||||
MREAD(LevelName,sizeof(LevelName),1,fil);
|
||||
|
|
Loading…
Reference in a new issue