diff options
author | belugas <belugas@openttd.org> | 2007-06-15 23:55:52 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-06-15 23:55:52 +0000 |
commit | 0f0b58d429b1103687a2e4e9a51d2221ba0e8f01 (patch) | |
tree | ef79fa77b3b91584c234b33bb2995df7ed57ad55 /src/newgrf.h | |
parent | 77b29ea3bc59baaf8cb005b76464ab3951a93914 (diff) | |
download | openttd-0f0b58d429b1103687a2e4e9a51d2221ba0e8f01.tar.xz |
(svn r10167) -Codechange: Change the flagging system of grf loaded feature from a bitset to a bool evaluation.
Like easier to read and faster to evaluate :)
Diffstat (limited to 'src/newgrf.h')
-rw-r--r-- | src/newgrf.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/newgrf.h b/src/newgrf.h index e1c8d1a10..7fc95380f 100644 --- a/src/newgrf.h +++ b/src/newgrf.h @@ -88,14 +88,14 @@ extern GRFFile *_first_grffile; 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); |