roadveh_cmd.c
changeset 1053 8d90844ddc2e
parent 1035 812f837ee03f
child 1093 4fdc46eaf423
equal deleted inserted replaced
1052:f996874f0f16 1053:8d90844ddc2e
  1479 		CheckVehicleBreakdown(v);
  1479 		CheckVehicleBreakdown(v);
  1480 
  1480 
  1481 	AgeVehicle(v);
  1481 	AgeVehicle(v);
  1482 	CheckIfRoadVehNeedsService(v);
  1482 	CheckIfRoadVehNeedsService(v);
  1483 
  1483 
  1484 	CheckOrders(v);
  1484 	CheckOrders(v->index, OC_INIT);
  1485 
  1485 
  1486 	/* update destination */
  1486 	/* update destination */
  1487 	if (v->current_order.type == OT_GOTO_STATION) {
  1487 	if (v->current_order.type == OT_GOTO_STATION) {
  1488 		st = GetStation(v->current_order.station);
  1488 		st = GetStation(v->current_order.station);
  1489 		if ((tile=(v->cargo_type==CT_PASSENGERS ? st->bus_tile : st->lorry_tile)) != 0)
  1489 		if ((tile=(v->cargo_type==CT_PASSENGERS ? st->bus_tile : st->lorry_tile)) != 0)