From 332d9b9ad127f18bf9c8515bc52905101a4ee691 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers <coelckers@zdoom.fake> Date: Sun, 7 Nov 2010 23:48:55 +0000 Subject: [PATCH] - Changed savegame versioning for SVN-less builds to use a SAVEVER value of 999999 so that it is guaranteed that such a build can load its own savegames - even if it is at the cost of losing the ability to handle older savegames. People should build ZDoom with revision info anyway. ;) SVN r2997 (trunk) --- src/version.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/version.h b/src/version.h index 5854c5f01..ee742c1c8 100644 --- a/src/version.h +++ b/src/version.h @@ -78,8 +78,9 @@ #define MINSAVEVER 1848 #if SVN_REVISION_NUMBER < MINSAVEVER -// Never write a savegame with a version lower than what we need -#define SAVEVER MINSAVEVER +// If we don't know the current revision write something very high to ensure that +// the reesulting executable can read its own savegames but no regular engine can. +#define SAVEVER 9999 #define SAVESIG MakeSaveSig() static inline const char *MakeSaveSig() {