--- a/src/newgrf.h Wed Jun 13 12:05:56 2007 +0000
+++ b/src/newgrf.h Tue Jun 19 07:21:01 2007 +0000
@@ -88,14 +88,14 @@
extern SpriteID _signal_base;
extern SpriteID _coast_base;
-enum GRFLoadedFeatures {
- GRFLOADED_2CC, // Set if any vehicle is loaded which uses 2cc (two company colours).
- GRFLOADED_NEWHOUSES, // Set if there are any newhouses loaded.
- GRFLOADED_NEWINDUSTRIES, // Set if there are any newindustries loaded.
+struct GRFLoadedFeatures {
+ bool has_2CC; ///< Set if any vehicle is loaded which uses 2cc (two company colours).
+ bool has_newhouses; ///< Set if there are any newhouses loaded.
+ bool has_newindustries; ///< Set if there are any newindustries loaded.
};
/* Indicates which are the newgrf features currently loaded ingame */
-extern uint8 _loaded_newgrf_features;
+extern GRFLoadedFeatures _loaded_newgrf_features;
void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage);
void LoadNewGRF(uint load_index, uint file_index);