src/currency.cpp
changeset 9358 2e1e4d2f71dd
parent 9234 bfc9d27d3d0d
child 9413 7042a8ec3fa8
equal deleted inserted replaced
9357:f540f1fb6bd9 9358:2e1e4d2f71dd
   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[_opt.currency].to_euro != CF_NOEURO &&
   153 	if (_currency_specs[_settings.gui.currency].to_euro != CF_NOEURO &&
   154 			_currency_specs[_opt.currency].to_euro != CF_ISEURO &&
   154 			_currency_specs[_settings.gui.currency].to_euro != CF_ISEURO &&
   155 			_cur_year >= _currency_specs[_opt.currency].to_euro) {
   155 			_cur_year >= _currency_specs[_settings.gui.currency].to_euro) {
   156 		_opt.currency = 2; // this is the index of euro above.
   156 		_settings.gui.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 /**