summaryrefslogtreecommitdiff
path: root/src/currency.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-29 15:13:28 +0000
committerrubidium <rubidium@openttd.org>2008-05-29 15:13:28 +0000
commite7a501100a242640d25c21627ec67e75f9645043 (patch)
tree59059f0a1aba0794fa770e8c9a19312e4ce300af /src/currency.cpp
parent48e20d801221888a1b8b6a4ab8288becad4b954b (diff)
downloadopenttd-e7a501100a242640d25c21627ec67e75f9645043.tar.xz
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
Diffstat (limited to 'src/currency.cpp')
-rw-r--r--src/currency.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/currency.cpp b/src/currency.cpp
index 7f21b7c50..6f0ae1abd 100644
--- a/src/currency.cpp
+++ b/src/currency.cpp
@@ -150,10 +150,10 @@ uint GetMaskOfAllowedCurrencies()
**/
void CheckSwitchToEuro()
{
- if (_currency_specs[_settings.gui.currency].to_euro != CF_NOEURO &&
- _currency_specs[_settings.gui.currency].to_euro != CF_ISEURO &&
- _cur_year >= _currency_specs[_settings.gui.currency].to_euro) {
- _settings.gui.currency = 2; // this is the index of euro above.
+ if (_currency_specs[_settings_client.gui.currency].to_euro != CF_NOEURO &&
+ _currency_specs[_settings_client.gui.currency].to_euro != CF_ISEURO &&
+ _cur_year >= _currency_specs[_settings_client.gui.currency].to_euro) {
+ _settings_client.gui.currency = 2; // this is the index of euro above.
AddNewsItem(STR_EURO_INTRODUCE, NS_ECONOMY, 0, 0);
}
}