(svn r20251) -Add: [NewGRF] allow grfs to specify the number of valid parameters

This commit is contained in:
yexo
2010-07-31 09:35:49 +00:00
parent 897818c198
commit 75c4a2d2fb
3 changed files with 17 additions and 1 deletions

View File

@@ -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