misc.c
changeset 286 03a46430df87
parent 271 35431b3d53ca
child 387 999cbb4eb515
equal deleted inserted replaced
285:e306da1c4ad1 286:03a46430df87
   628 	AircraftYearlyLoop();
   628 	AircraftYearlyLoop();
   629 	ShipsYearlyLoop();
   629 	ShipsYearlyLoop();
   630 
   630 
   631 	/* check if we reached 2090, that's the maximum year. */
   631 	/* check if we reached 2090, that's the maximum year. */
   632 	if (_cur_year == 171) {
   632 	if (_cur_year == 171) {
       
   633 		Vehicle *v;
   633 		_cur_year = 170;
   634 		_cur_year = 170;
   634 		_date = 62093;
   635 		_date = 62093;
       
   636 		FOR_ALL_VEHICLES(v) {
       
   637 			v->date_of_last_service -= 365; // 1 year is 365 days long
       
   638 		}
   635 	}
   639 	}
   636 
   640 
   637 	if (_patches.auto_euro)
   641 	if (_patches.auto_euro)
   638 		CheckSwitchToEuro();
   642 		CheckSwitchToEuro();
   639 
   643