summaryrefslogtreecommitdiff
path: root/src/newgrf_config.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-07-31 09:35:49 +0000
committeryexo <yexo@openttd.org>2010-07-31 09:35:49 +0000
commit75c4a2d2fb4c400eb2eef6e1e1fa1bf3573c5be0 (patch)
tree62647c7494da5efbff57de09eab31dda31ecad18 /src/newgrf_config.h
parent897818c198944e22c0df4fb132f28a8d2b2f32bb (diff)
downloadopenttd-75c4a2d2fb4c400eb2eef6e1e1fa1bf3573c5be0.tar.xz
(svn r20251) -Add: [NewGRF] allow grfs to specify the number of valid parameters
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 58e29afec..56131e766 100644
--- a/src/newgrf_config.h
+++ b/src/newgrf_config.h
@@ -99,6 +99,7 @@ struct GRFConfig : ZeroedMemoryAllocator {
uint32 grf_bugs; ///< NOSAVE: bugs in this GRF in this run, @see enum GRFBugs
uint32 param[0x80]; ///< GRF parameters
uint8 num_params; ///< Number of used parameters
+ uint8 num_valid_params; ///< Number of valid parameters (action 0x14)
bool windows_paletted; ///< Whether the NewGRF is Windows paletted or not
struct GRFConfig *next; ///< NOSAVE: Next item in the linked list