src/train_cmd.cpp
changeset 6953 230d1e3ac86c
parent 6950 14ecb0acdfb4
child 6966 e13afa08b151
equal deleted inserted replaced
6952:b19643469024 6953:230d1e3ac86c
  3351 	v->current_order.dest = depot->index;
  3351 	v->current_order.dest = depot->index;
  3352 	v->dest_tile = tfdd.tile;
  3352 	v->dest_tile = tfdd.tile;
  3353 	InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR);
  3353 	InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR);
  3354 }
  3354 }
  3355 
  3355 
  3356 int32 GetTrainRunningCost(const Vehicle *v)
  3356 Money GetTrainRunningCost(const Vehicle *v)
  3357 {
  3357 {
  3358 	int32 cost = 0;
  3358 	Money cost = 0;
  3359 
  3359 
  3360 	do {
  3360 	do {
  3361 		const RailVehicleInfo *rvi = RailVehInfo(v->engine_type);
  3361 		const RailVehicleInfo *rvi = RailVehInfo(v->engine_type);
  3362 
  3362 
  3363 		byte cost_factor = GetVehicleProperty(v, 0x0D, rvi->running_cost_base);
  3363 		byte cost_factor = GetVehicleProperty(v, 0x0D, rvi->running_cost_base);