summaryrefslogtreecommitdiff
path: root/src/newgrf_config.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-07-24 15:19:26 +0000
committersmatz <smatz@openttd.org>2008-07-24 15:19:26 +0000
commitaae2aa64c4281583ea31d668d85301fe7996bd2e (patch)
tree881cc1be79243d58238de4eda1a24345c93a5735 /src/newgrf_config.h
parent9bee9948986c4c4905c53b6214311e2ddb6d6e8d (diff)
downloadopenttd-aae2aa64c4281583ea31d668d85301fe7996bd2e.tar.xz
(svn r13816) -Fix [FS#2150]: check for vehicle length changes outside a depot (callback 0x11) and give a warning about that
Diffstat (limited to 'src/newgrf_config.h')
-rw-r--r--src/newgrf_config.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/newgrf_config.h b/src/newgrf_config.h
index 45138d471..e7d5b11cb 100644
--- a/src/newgrf_config.h
+++ b/src/newgrf_config.h
@@ -28,8 +28,13 @@ enum GRFStatus {
GCS_ACTIVATED ///< GRF file has been activated
};
+/** Encountered GRF bugs */
+enum GRFBugs {
+ GBUG_VEH_LENGTH, ///< Length of rail vehicle changes when not inside a depot
+};
+
/** Status of post-gameload GRF compatibility check */
-enum GRFListCompatibility{
+enum GRFListCompatibility {
GLC_ALL_GOOD, ///< All GRF needed by game are present
GLC_COMPATIBLE, ///< Compatible (eg. the same ID, but different chacksum) GRF found in at least one case
GLC_NOT_FOUND ///< At least one GRF couldn't be found (higher priority than GLC_COMPATIBLE)
@@ -60,6 +65,7 @@ struct GRFConfig : public GRFIdentifier {
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
uint32 param[0x80]; ///< GRF parameters
uint8 num_params; ///< Number of used parameters