diff options
author | frosch <frosch@openttd.org> | 2011-01-15 21:13:47 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-01-15 21:13:47 +0000 |
commit | 6e4dd5615878c658cf687a73dc1990f9e903df86 (patch) | |
tree | 29eddd4bfb56a83ab7ba2e131372d79535fb8b79 /src/newgrf_config.h | |
parent | 4d8a93c870428d8cdffad9a453aef91a1365f97e (diff) | |
download | openttd-6e4dd5615878c658cf687a73dc1990f9e903df86.tar.xz |
(svn r21814) -Fix/Add: Check GRF version from action 8, and disallow usage of GRFs with versions above 7.
Diffstat (limited to 'src/newgrf_config.h')
-rw-r--r-- | src/newgrf_config.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 }; |