summaryrefslogtreecommitdiff
path: root/src/newgrf_config.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-07-31 14:40:50 +0000
committerrubidium <rubidium@openttd.org>2010-07-31 14:40:50 +0000
commitac280af8bc75f89223238a77f871b1a610014219 (patch)
treef11e8dde3c5e08a29824a11429eb573a3373302a /src/newgrf_config.h
parent5a2862814ac310e5e4629e0242def8ebf3a6da1c (diff)
downloadopenttd-ac280af8bc75f89223238a77f871b1a610014219.tar.xz
(svn r20259) -Add: allow NewGRFs to specify their version and use that to hide old NewGRFs / to choose the newest when loading compatible NewGRFs
Diffstat (limited to 'src/newgrf_config.h')
-rw-r--r--src/newgrf_config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_config.h b/src/newgrf_config.h
index fe5e8c9c4..34e21808e 100644
--- a/src/newgrf_config.h
+++ b/src/newgrf_config.h
@@ -139,6 +139,7 @@ struct GRFConfig : ZeroedMemoryAllocator {
struct GRFText *info; ///< NOSAVE: GRF info (author, copyright, ...) (Action 0x08)
GRFError *error; ///< NOSAVE: Error/Warning during GRF loading (Action 0x0B)
+ uint32 version; ///< NOSAVE: Version a NewGRF can set so only the newest NewGRF is shown
uint8 flags; ///< NOSAVE: GCF_Flags, bitset
GRFStatus status; ///< NOSAVE: GRFStatus, enum
uint32 grf_bugs; ///< NOSAVE: bugs in this GRF in this run, @see enum GRFBugs