mirror of https://github.com/OpenTTD/OpenTTD
(svn r6765) - Fix: Don't add up running cost of articulated engine parts.
parent
22774d093c
commit
35b059210d
|
@ -3560,7 +3560,7 @@ int32 GetTrainRunningCost(const Vehicle *v)
|
||||||
const RailVehicleInfo *rvi = RailVehInfo(v->engine_type);
|
const RailVehicleInfo *rvi = RailVehInfo(v->engine_type);
|
||||||
if (rvi->running_cost_base > 0)
|
if (rvi->running_cost_base > 0)
|
||||||
cost += rvi->running_cost_base * _price.running_rail[rvi->running_cost_class];
|
cost += rvi->running_cost_base * _price.running_rail[rvi->running_cost_class];
|
||||||
} while ((v = v->next) != NULL);
|
} while ((v = GetNextVehicle(v)) != NULL);
|
||||||
|
|
||||||
return cost;
|
return cost;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue