Add client setting for whether to sync locale settings with server in multiplayer

This commit is contained in:
Jonathan G Rennison
2022-01-21 01:37:15 +00:00
parent 82dec9a78a
commit 26fb0940c6
5 changed files with 22 additions and 0 deletions

View File

@@ -762,6 +762,11 @@ struct ScenarioSettings {
bool house_ignore_grf; ///< allow manually adding houses regardless of GRF restrictions
};
/** Settings related to currency/unit systems. */
struct ClientLocaleSettings {
bool sync_locale_network_server; ///< sync locale settings with network server
};
/** All settings together for the game. */
struct GameSettings {
DifficultySettings difficulty; ///< settings related to the difficulty
@@ -785,6 +790,7 @@ struct GameSettings {
/** All settings that are only important for the local client. */
struct ClientSettings {
GUISettings gui; ///< settings related to the GUI
ClientLocaleSettings client_locale; ///< settings related to used currency/unit system in the client
NetworkSettings network; ///< settings related to the network
CompanySettings company; ///< default values for per-company settings
SoundSettings sound; ///< sound effect settings