src/currency.cpp
changeset 9466 5a1d4eb2ae07
parent 9413 7042a8ec3fa8
child 9950 2a0d0769c0e3
equal deleted inserted replaced
9465:e82cff143b1f 9466:5a1d4eb2ae07
   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 /**