86 extern GRFFile *_first_grffile; |
86 extern GRFFile *_first_grffile; |
87 |
87 |
88 extern SpriteID _signal_base; |
88 extern SpriteID _signal_base; |
89 extern SpriteID _coast_base; |
89 extern SpriteID _coast_base; |
90 |
90 |
91 enum GRFLoadedFeatures { |
91 struct GRFLoadedFeatures { |
92 GRFLOADED_2CC, // Set if any vehicle is loaded which uses 2cc (two company colours). |
92 bool has_2CC; ///< Set if any vehicle is loaded which uses 2cc (two company colours). |
93 GRFLOADED_NEWHOUSES, // Set if there are any newhouses loaded. |
93 bool has_newhouses; ///< Set if there are any newhouses loaded. |
94 GRFLOADED_NEWINDUSTRIES, // Set if there are any newindustries loaded. |
94 bool has_newindustries; ///< Set if there are any newindustries loaded. |
95 }; |
95 }; |
96 |
96 |
97 /* Indicates which are the newgrf features currently loaded ingame */ |
97 /* Indicates which are the newgrf features currently loaded ingame */ |
98 extern uint8 _loaded_newgrf_features; |
98 extern GRFLoadedFeatures _loaded_newgrf_features; |
99 |
99 |
100 void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage); |
100 void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage); |
101 void LoadNewGRF(uint load_index, uint file_index); |
101 void LoadNewGRF(uint load_index, uint file_index); |
102 void ReloadNewGRFData(); // in openttd.cpp |
102 void ReloadNewGRFData(); // in openttd.cpp |
103 |
103 |