summaryrefslogtreecommitdiff
path: root/src/settings_internal.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-26 17:43:06 +0000
committerrubidium <rubidium@openttd.org>2009-09-26 17:43:06 +0000
commitac99610a05dce9510a3074658edcb745e0430504 (patch)
tree40dfa784f10b08e4f89a438f7744807d6ac801e2 /src/settings_internal.h
parenta47138ad34f6b74ee83e0bdb3c5c9d317465ecb3 (diff)
downloadopenttd-ac99610a05dce9510a3074658edcb745e0430504.tar.xz
(svn r17644) -Fix [FS#3219]: some inconsistencies with the difficulty settings in the scenario editor. Also re-enable changing some difficulty settings (e.g. max loan) in the scenario editor.
Diffstat (limited to 'src/settings_internal.h')
-rw-r--r--src/settings_internal.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/settings_internal.h b/src/settings_internal.h
index a91886214..2903239c1 100644
--- a/src/settings_internal.h
+++ b/src/settings_internal.h
@@ -44,11 +44,12 @@ enum SettingGuiFlagLong {
SGF_NETWORK_ONLY = 1 << 3, ///< this setting only applies to network games
SGF_CURRENCY = 1 << 4, ///< the number represents money, so when reading value multiply by exchange rate
SGF_NO_NETWORK = 1 << 5, ///< this setting does not apply to network games; it may not be changed during the game
- SGF_NEWGAME_ONLY = 1 << 6, ///< this setting cannot be changed in inside a game
- SGF_PER_COMPANY = 1 << 7, ///< this setting can be different for each company (saved in company struct)
+ SGF_NEWGAME_ONLY = 1 << 6, ///< this setting cannot be changed in a game
+ SGF_SCENEDIT_TOO = 1 << 7, ///< this setting can be changed in the scenario editor (only makes sense when SGF_NEWGAME_ONLY is set)
+ SGF_PER_COMPANY = 1 << 8, ///< this setting can be different for each company (saved in company struct)
};
DECLARE_ENUM_AS_BIT_SET(SettingGuiFlagLong);
-typedef SimpleTinyEnumT<SettingGuiFlagLong, byte> SettingGuiFlag;
+typedef SimpleTinyEnumT<SettingGuiFlagLong, uint16> SettingGuiFlag;
typedef bool OnChange(int32 var); ///< callback prototype on data modification