equal
deleted
inserted
replaced
148 /** |
148 /** |
149 * Verify if the currency chosen by the user is about to be converted to Euro |
149 * Verify if the currency chosen by the user is about to be converted to Euro |
150 **/ |
150 **/ |
151 void CheckSwitchToEuro() |
151 void CheckSwitchToEuro() |
152 { |
152 { |
153 if (_currency_specs[_settings_client.gui.currency].to_euro != CF_NOEURO && |
153 if (_currency_specs[_settings_game.locale.currency].to_euro != CF_NOEURO && |
154 _currency_specs[_settings_client.gui.currency].to_euro != CF_ISEURO && |
154 _currency_specs[_settings_game.locale.currency].to_euro != CF_ISEURO && |
155 _cur_year >= _currency_specs[_settings_client.gui.currency].to_euro) { |
155 _cur_year >= _currency_specs[_settings_game.locale.currency].to_euro) { |
156 _settings_client.gui.currency = 2; // this is the index of euro above. |
156 _settings_game.locale.currency = 2; // this is the index of euro above. |
157 AddNewsItem(STR_EURO_INTRODUCE, NS_ECONOMY, 0, 0); |
157 AddNewsItem(STR_EURO_INTRODUCE, NS_ECONOMY, 0, 0); |
158 } |
158 } |
159 } |
159 } |
160 |
160 |
161 /** |
161 /** |