allow reading of JSON_REPORT_VERSION from future source release

This commit is contained in:
Enno Rehling 2015-04-19 08:13:40 +02:00
parent 0b3190605a
commit 3e1ae5e0f2
3 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,3 @@
#define VERSION_MAJOR 3
#define VERSION_MINOR 4
#define VERSION_BUILD 6
#define VERSION_BUILD 7

View File

@ -1382,7 +1382,7 @@ int readgame(const char *filename, int backup)
assert(stream_version == STREAM_VERSION || !"unsupported data format");
}
assert(gdata.version >= MIN_VERSION || !"unsupported data format");
assert(gdata.version <= RELEASE_VERSION || !"unsupported data format");
assert(gdata.version <= MAX_VERSION || !"unsupported data format");
gdata.encoding = enc_gamedata;
fstream_init(&strm, F);

View File

@ -30,6 +30,7 @@
#define AUTO_RACENAME_VERSION 345 /* NPC units with name==NULL will automatically get their race for a name */
#define MIN_VERSION INTPAK_VERSION /* minimal datafile we support */
#define MAX_VERSION 346
#define RELEASE_VERSION AUTO_RACENAME_VERSION /* current datafile */
#define STREAM_VERSION 2 /* internal encoding of binary files */