src/ai/default/default.cpp
changeset 9110 55864e1fc263
parent 9107 3e57b96e98f2
child 9112 ec6800eaa340
equal deleted inserted replaced
9109:0fd2aebb5afe 9110:55864e1fc263
   110 				return;
   110 				return;
   111 			}
   111 			}
   112 
   112 
   113 			/* not profitable? */
   113 			/* not profitable? */
   114 			if (v->age >= 730 &&
   114 			if (v->age >= 730 &&
   115 					v->profit_last_year >> 8 < _price.station_value * 5 &&
   115 					v->profit_last_year < _price.station_value * 5 * 256 &&
   116 					v->profit_this_year >> 8 < _price.station_value * 5) {
   116 					v->profit_this_year < _price.station_value * 5 * 256) {
   117 				_players_ai[p->index].state_counter = 0;
   117 				_players_ai[p->index].state_counter = 0;
   118 				_players_ai[p->index].state = AIS_SELL_VEHICLE;
   118 				_players_ai[p->index].state = AIS_SELL_VEHICLE;
   119 				_players_ai[p->index].cur_veh = v;
   119 				_players_ai[p->index].cur_veh = v;
   120 				return;
   120 				return;
   121 			}
   121 			}