summaryrefslogtreecommitdiff
path: root/src/settings_internal.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-05-26 11:40:14 +0000
committeryexo <yexo@openttd.org>2009-05-26 11:40:14 +0000
commita10e5f707a4dd893b5cf80faa189f669291a4906 (patch)
treeb3d88922ca83a9ab23f903e1db4c40781f3137fe /src/settings_internal.h
parentb19d0e0254883d0db9d8f3d01dacd94e0229f9ac (diff)
downloadopenttd-a10e5f707a4dd893b5cf80faa189f669291a4906.tar.xz
(svn r16429) -Change: Make the company settings behave like all others settings: the default set in the main menu / config file is now really the default for a new company, and changing the value in game will no longer change the default for new companies.
Diffstat (limited to 'src/settings_internal.h')
-rw-r--r--src/settings_internal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/settings_internal.h b/src/settings_internal.h
index df3597226..cd45dd8d3 100644
--- a/src/settings_internal.h
+++ b/src/settings_internal.h
@@ -28,7 +28,7 @@ typedef SimpleTinyEnumT<SettingDescTypeLong, byte> SettingDescType;
enum SettingGuiFlagLong {
- /* 8 bytes allocated for a maximum of 8 flags
+ /* 1 byte allocated for a maximum of 8 flags
* Flags directing saving/loading of a variable */
SGF_NONE = 0,
SGF_0ISDISABLED = 1 << 0, ///< a value of zero means the feature is disabled
@@ -38,7 +38,7 @@ enum SettingGuiFlagLong {
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_END = 1 << 7,
+ SGF_PER_COMPANY = 1 << 7, ///< this setting can be different for each company (saved in company struct)
};
DECLARE_ENUM_AS_BIT_SET(SettingGuiFlagLong);
typedef SimpleTinyEnumT<SettingGuiFlagLong, byte> SettingGuiFlag;
@@ -78,5 +78,6 @@ typedef SettingDesc SettingDescGlobVarList;
const SettingDesc *GetSettingFromName(const char *name, uint *i);
bool SetSettingValue(uint index, int32 value);
bool SetSettingValue(uint index, const char *value);
+void SetCompanySetting(uint index, int32 value);
#endif /* SETTINGS_H */