summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-11-08 17:24:01 +0000
committerfrosch <frosch@openttd.org>2011-11-08 17:24:01 +0000
commitae11548b4ec2650348d818ae9f6bc19dd62caac2 (patch)
treefdadab36667b7964de28a9eecd47aa4c0069bb15
parent1ad7239247e1bc3c7f018c98830ee59cdb9acaaa (diff)
downloadopenttd-ae11548b4ec2650348d818ae9f6bc19dd62caac2.tar.xz
(svn r23139) -Change: [NewGRF v8] Do no longer apply base cost fallbacks.
-rw-r--r--src/newgrf.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 61815e705..e5d3691e6 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -8682,9 +8682,10 @@ static void FinalisePriceBaseMultipliers()
}
}
- /* Apply fallback prices */
+ /* Apply fallback prices for grf version < 8 */
const GRFFile * const *end = _grf_files.End();
for (GRFFile **file = _grf_files.Begin(); file != end; file++) {
+ if ((*file)->grf_version >= 8) continue;
PriceMultipliers &price_base_multipliers = (*file)->price_base_multipliers;
for (Price p = PR_BEGIN; p < PR_END; p++) {
Price fallback_price = _price_base_specs[p].fallback_price;