Changeset - r18293:c9afcb11eab2
[Not reviewed]
master
0 1 0
frosch - 13 years ago 2011-11-08 17:24:01
frosch@openttd.org
(svn r23139) -Change: [NewGRF v8] Do no longer apply base cost fallbacks.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf.cpp
Show inline comments
 
@@ -8679,15 +8679,16 @@ static void FinalisePriceBaseMultipliers
 
				DEBUG(grf, 3, "Price base multiplier %d from '%s' propagated to '%s'", p, dest->filename, source->filename);
 
			}
 
			source->price_base_multipliers[p] = dest->price_base_multipliers[p];
 
		}
 
	}
 

	
 
	/* 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;
 
			if (fallback_price != INVALID_PRICE && price_base_multipliers[p] == INVALID_PRICE_MODIFIER) {
 
				/* No price multiplier has been set.
 
				 * So copy the multiplier from the fallback price, maybe a multiplier was set there. */
0 comments (0 inline, 0 general)