diff options
author | frosch <frosch@openttd.org> | 2009-11-24 13:15:58 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-11-24 13:15:58 +0000 |
commit | d507136e04432c420bbf48bb322c22335bc0dbfa (patch) | |
tree | 0d3f50287b352572dfd8a735a6f87a83568a4baa /src/roadveh_cmd.cpp | |
parent | 5e247b6e439f8e717991d1bc5df27ddb732b1865 (diff) | |
download | openttd-d507136e04432c420bbf48bb322c22335bc0dbfa.tar.xz |
(svn r18268) -Feature: [NewGRF] Make price base multipliers related to vehicles only apply to the GRF locally, if it defines engines of that type itself.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r-- | src/roadveh_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index bc69349c3..ca7d89913 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1833,7 +1833,7 @@ Money RoadVehicle::GetRunningCost() const uint cost_factor = GetVehicleProperty(this, PROP_ROADVEH_RUNNING_COST_FACTOR, e->u.road.running_cost); if (cost_factor == 0) return 0; - return GetPrice(e->u.road.running_cost_class, cost_factor); + return GetPrice(e->u.road.running_cost_class, cost_factor, e->grffile); } bool RoadVehicle::Tick() |