src/ai/default/default.cpp
changeset 8556 ce8d86cc14d2
parent 8449 64c872ab3ed3
child 8563 13b1a41e46f1
equal deleted inserted replaced
8555:6391e7bc081b 8556:ce8d86cc14d2
   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 < _price.station_value * 5 &&
   115 					v->profit_last_year >> 8 < _price.station_value * 5 &&
   116 					v->profit_this_year < _price.station_value * 5) {
   116 					v->profit_this_year >> 8 < _price.station_value * 5) {
   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 			}