summaryrefslogtreecommitdiff
path: root/src/newgrf.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-05-31 19:13:41 +0000
committerbelugas <belugas@openttd.org>2007-05-31 19:13:41 +0000
commit4af692558a4e78e5b5b074f68adf3c60ff89d055 (patch)
tree539e6a1d877b0459ab303b47d86cf1ac9c8c1e2f /src/newgrf.h
parent01f80cf343918df3e9865cb272264ee3519154fa (diff)
downloadopenttd-4af692558a4e78e5b5b074f68adf3c60ff89d055.tar.xz
(svn r10005) -Codechange: Merge two flags (2cc and newhouses) indicating some newgrf features have been loaded, and introduce the newindustry one.
Diffstat (limited to 'src/newgrf.h')
-rw-r--r--src/newgrf.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/newgrf.h b/src/newgrf.h
index 7324e7dd9..e1c8d1a10 100644
--- a/src/newgrf.h
+++ b/src/newgrf.h
@@ -87,8 +87,15 @@ extern GRFFile *_first_grffile;
extern SpriteID _signal_base;
extern SpriteID _coast_base;
-extern bool _have_2cc;
-extern bool _have_newhouses;
+
+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.
+};
+
+/* Indicates which are the newgrf features currently loaded ingame */
+extern uint8 _loaded_newgrf_features;
void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage);
void LoadNewGRF(uint load_index, uint file_index);