diff options
Diffstat (limited to 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/train_cmd.c b/train_cmd.c index 8f1b4442c..e6ef3cb18 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -364,7 +364,7 @@ static const byte _railveh_score[] = { }; -static int32 EstimateTrainCost(const RailVehicleInfo *rvi) +int32 EstimateTrainCost(const RailVehicleInfo *rvi) { return (rvi->base_cost * (_price.build_railvehicle >> 3)) >> 5; } @@ -2618,7 +2618,7 @@ void TrainEnterDepot(Vehicle *v, uint tile) v->load_unload_time_rem = 0; v->cur_speed = 0; - MaybeRenewVehicle(v, EstimateTrainCost(RailVehInfo(v->engine_type))); + MaybeRenewVehicle(v); TriggerVehicle(v, VEHICLE_TRIGGER_DEPOT); |