summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-11-24 13:15:58 +0000
committerfrosch <frosch@openttd.org>2009-11-24 13:15:58 +0000
commitd507136e04432c420bbf48bb322c22335bc0dbfa (patch)
tree0d3f50287b352572dfd8a735a6f87a83568a4baa /src/engine.cpp
parent5e247b6e439f8e717991d1bc5df27ddb732b1865 (diff)
downloadopenttd-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/engine.cpp')
-rw-r--r--src/engine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 1d0ea1b0b..07c69091e 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -232,7 +232,7 @@ Money Engine::GetRunningCost() const
default: NOT_REACHED();
}
- return GetPrice(base_price, cost_factor, -8);
+ return GetPrice(base_price, cost_factor, this->grffile, -8);
}
Money Engine::GetCost() const
@@ -268,7 +268,7 @@ Money Engine::GetCost() const
default: NOT_REACHED();
}
- return GetPrice(base_price, cost_factor, -8);
+ return GetPrice(base_price, cost_factor, this->grffile, -8);
}
/**