- 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:
Christoph Oelckers 2008-01-05 09:12:05 +00:00
commit 10b71b09c8
3 changed files with 11 additions and 5 deletions

View file

@ -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)
{