From f1c0555d2e6863099f917c6a838b59523a4b86e3 Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 24 Jul 2008 15:19:26 +0000 Subject: (svn r13816) -Fix [FS#2150]: check for vehicle length changes outside a depot (callback 0x11) and give a warning about that --- src/newgrf_config.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/newgrf_config.h') 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 -- cgit v1.2.3-54-g00ecf