- Changed savegame versioning to use the SVN revision number instead of
an arbitrarily defined value. This reduces the amount of relevant values that have to be defined in version.h to 1 (the minimum compatible savegame version) instead of previously 3. SVN r666 (trunk)
This commit is contained in:
parent
3017f7646d
commit
10b71b09c8
3 changed files with 11 additions and 5 deletions
|
|
@ -1684,7 +1684,7 @@ static void ReadArrayVars (PNGHandle *png, FWorldGlobalArray *vars, size_t count
|
|||
|
||||
void G_DoLoadGame ()
|
||||
{
|
||||
char sigcheck[16];
|
||||
char sigcheck[20];
|
||||
char *text = NULL;
|
||||
char *map;
|
||||
|
||||
|
|
@ -1733,7 +1733,7 @@ void G_DoLoadGame ()
|
|||
delete[] engine;
|
||||
}
|
||||
|
||||
if (!M_GetPNGText (png, "ZDoom Save Version", sigcheck, 16) ||
|
||||
if (!M_GetPNGText (png, "ZDoom Save Version", sigcheck, 20) ||
|
||||
0 != strncmp (sigcheck, SAVESIG, 9) || // ZDOOMSAVE is the first 9 chars
|
||||
(SaveVersion = atoi (sigcheck+9)) < MINSAVEVER)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue