mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r6765) - Fix: Don't add up running cost of articulated engine parts.
This commit is contained in:
parent
06a336d53d
commit
1e79d68a34
@ -3560,7 +3560,7 @@ int32 GetTrainRunningCost(const Vehicle *v)
|
||||
const RailVehicleInfo *rvi = RailVehInfo(v->engine_type);
|
||||
if (rvi->running_cost_base > 0)
|
||||
cost += rvi->running_cost_base * _price.running_rail[rvi->running_cost_class];
|
||||
} while ((v = v->next) != NULL);
|
||||
} while ((v = GetNextVehicle(v)) != NULL);
|
||||
|
||||
return cost;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user