summaryrefslogtreecommitdiff
path: root/src/newgrf.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-12-31 04:38:11 +0000
committerbelugas <belugas@openttd.org>2007-12-31 04:38:11 +0000
commit8ee1faca6c8b4dbb13962c132fd9544dfee42ffa (patch)
treeca1f1cefe486219cdeb6b37c0d30bc2de02020da /src/newgrf.h
parent31e2ed8b4cc8b16346d8bdfe5acfca068cc09e4d (diff)
downloadopenttd-8ee1faca6c8b4dbb13962c132fd9544dfee42ffa.tar.xz
(svn r11726) -Feature[newGRF]: Extend the Action 5, feature 0D usage. Patch by BigBB
Diffstat (limited to 'src/newgrf.h')
-rw-r--r--src/newgrf.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/newgrf.h b/src/newgrf.h
index 283b35ec8..54b5c99c9 100644
--- a/src/newgrf.h
+++ b/src/newgrf.h
@@ -41,6 +41,7 @@ struct GRFLabel {
struct GRFFile {
char *filename;
+ bool is_ottdfile;
uint32 grfid;
uint16 sprite_offset;
byte grf_version;
@@ -84,19 +85,16 @@ struct GRFFile {
extern GRFFile *_first_grffile;
-extern SpriteID _coast_base;
-
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.
- bool has_newwater; ///< Set it there are any newwater grf loaded
};
/* Indicates which are the newgrf features currently loaded ingame */
extern GRFLoadedFeatures _loaded_newgrf_features;
-void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage);
+void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage, bool ottd_grf = false);
void LoadNewGRF(uint load_index, uint file_index);
void ReloadNewGRFData(); // in openttd.cpp