train_cmd.c
changeset 578 86e352980acd
parent 555 eec6c0294435
child 588 1b60458bdc29
equal deleted inserted replaced
577:e62f4da21fef 578:86e352980acd
  1286 
  1286 
  1287 		if (UpdateSignalsOnSegment(v->tile, v->direction))
  1287 		if (UpdateSignalsOnSegment(v->tile, v->direction))
  1288 			return true;
  1288 			return true;
  1289 	}
  1289 	}
  1290 
  1290 
       
  1291 	VehicleServiceInDepot(v);
  1291 	TrainPlayLeaveStationSound(v);
  1292 	TrainPlayLeaveStationSound(v);
  1292 
  1293 
  1293 	v->u.rail.track = 1;
  1294 	v->u.rail.track = 1;
  1294 	if (v->direction & 2)
  1295 	if (v->direction & 2)
  1295 		v->u.rail.track = 2;
  1296 		v->u.rail.track = 2;
  2552 	SetSignalsOnBothDir(tile, _depot_track_ind[_map5[tile]&3]);
  2553 	SetSignalsOnBothDir(tile, _depot_track_ind[_map5[tile]&3]);
  2553 
  2554 
  2554 	if (v->subtype != 0)
  2555 	if (v->subtype != 0)
  2555 		v = GetFirstVehicleInChain(v);
  2556 		v = GetFirstVehicleInChain(v);
  2556 
  2557 
  2557 	v->date_of_last_service = _date;
  2558 	VehicleServiceInDepot(v);
  2558 	v->breakdowns_since_last_service = 0;
  2559 
  2559 	v->reliability = _engines[v->engine_type].reliability;
       
  2560 	InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
  2560 	InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
  2561 
  2561 
  2562 	v->load_unload_time_rem = 0;
  2562 	v->load_unload_time_rem = 0;
  2563 	v->cur_speed = 0;
  2563 	v->cur_speed = 0;
  2564 
  2564