train_cmd.c
changeset 4708 5129e3add448
parent 4656 acffecd6f484
child 4712 273ec3b182bf
equal deleted inserted replaced
4707:a4218ff7549d 4708:5129e3add448
  1840 		}
  1840 		}
  1841 	} while ((v = v->next) != NULL);
  1841 	} while ((v = v->next) != NULL);
  1842 
  1842 
  1843 	_returned_refit_capacity = num;
  1843 	_returned_refit_capacity = num;
  1844 
  1844 
       
  1845 	/* Update the train's cached variables */
       
  1846 	if (flags & DC_EXEC) TrainConsistChanged(GetVehicle(p1));
       
  1847 
  1845 	return cost;
  1848 	return cost;
  1846 }
  1849 }
  1847 
  1850 
  1848 typedef struct TrainFindDepotData {
  1851 typedef struct TrainFindDepotData {
  1849 	uint best_length;
  1852 	uint best_length;