diff options
author | yexo <yexo@openttd.org> | 2009-05-15 23:55:06 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-05-15 23:55:06 +0000 |
commit | 31eff1d4c30803e09083320886630da8b28690d1 (patch) | |
tree | b8c0c563425389a5e9514760bb5e1cc9cf0013c1 /src/settings_type.h | |
parent | aea2fcd0a09fa47caf022934ba8029ec327906f7 (diff) | |
download | openttd-31eff1d4c30803e09083320886630da8b28690d1.tar.xz |
(svn r16315) -Codechange: move the autorenew settings to a new CompanySettings struct
Diffstat (limited to 'src/settings_type.h')
-rw-r--r-- | src/settings_type.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/settings_type.h b/src/settings_type.h index e02ca606f..d4f4137bb 100644 --- a/src/settings_type.h +++ b/src/settings_type.h @@ -78,9 +78,6 @@ struct GUISettings { bool auto_euro; ///< automatically switch to euro in 2002 byte drag_signals_density; ///< many signals density Year semaphore_build_before; ///< build semaphore signals automatically before this year - bool autorenew; ///< should autorenew be enabled for new companies? - int16 autorenew_months; ///< how many months from EOL of vehicles should autorenew trigger for new companies? - int32 autorenew_money; ///< how much money before autorenewing for new companies? byte news_message_timeout; ///< how much longer than the news message "age" should we keep the message in the history bool show_track_reservation; ///< highlight reserved tracks. uint8 default_signal_type; ///< the signal type to build by default. @@ -341,6 +338,14 @@ struct StationSettings { byte station_spread; ///< amount a station may spread }; +/** Settings that can be set per company. */ +struct CompanySettings { + bool engine_renew; ///< is autorenew enabled + int16 engine_renew_months; ///< months before/after the maximum vehicle age a vehicle should be renewed + uint32 engine_renew_money; ///< minimum amount of money before autorenew is used + bool renew_keep_length; ///< sell some wagons if after autoreplace the train is longer than before +}; + /** All settings together for the game. */ struct GameSettings { DifficultySettings difficulty; ///< settings related to the difficulty @@ -360,6 +365,7 @@ struct GameSettings { struct ClientSettings { GUISettings gui; ///< settings related to the GUI NetworkSettings network; ///< settings related to the network + CompanySettings company; ///< default values for per-company settings }; /** The current settings for this game. */ |