From 6e4dd5615878c658cf687a73dc1990f9e903df86 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 15 Jan 2011 21:13:47 +0000 Subject: (svn r21814) -Fix/Add: Check GRF version from action 8, and disallow usage of GRFs with versions above 7. --- src/newgrf_config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/newgrf_config.h') diff --git a/src/newgrf_config.h b/src/newgrf_config.h index 54d51e05e..f6c97c42c 100644 --- a/src/newgrf_config.h +++ b/src/newgrf_config.h @@ -25,7 +25,7 @@ enum GCF_Flags { GCF_COPY, ///< The data is copied from a grf in _all_grfs GCF_INIT_ONLY, ///< GRF file is processed up to GLS_INIT GCF_RESERVED, ///< GRF file passed GLS_RESERVE stage - + GCF_INVALID, ///< GRF is unusable with this version of OpenTTD }; /** Status of GRF */ @@ -170,6 +170,7 @@ enum FindGRFConfigMode { FGCM_EXACT, ///< Only find Grfs matching md5sum FGCM_COMPATIBLE, ///< Find best compatible Grf wrt. desired_version FGCM_NEWEST, ///< Find newest Grf + FGCM_NEWEST_VALID,///< Find newest Grf, ignoring Grfs with GCF_INVALID set FGCM_ANY, ///< Use first found }; -- cgit v1.2.3-54-g00ecf