diff options
author | maedhros <maedhros@openttd.org> | 2007-10-14 21:20:12 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-10-14 21:20:12 +0000 |
commit | 675a826601e74390673317bfbbada37dc8d57ec2 (patch) | |
tree | e736c50ab51b5772162a0b2e2bdc1fdc07aae36d /src/rail.cpp | |
parent | 42761739228fea45f3c561327cae3c609c4f34a1 (diff) | |
download | openttd-675a826601e74390673317bfbbada37dc8d57ec2.tar.xz |
(svn r11265) -Feature: Make more advanced rail types more expensive to build.
Diffstat (limited to 'src/rail.cpp')
-rw-r--r-- | src/rail.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rail.cpp b/src/rail.cpp index b172ea499..8bf83a36a 100644 --- a/src/rail.cpp +++ b/src/rail.cpp @@ -107,6 +107,12 @@ extern const TrackBits _corner_to_trackbits[] = { TRACK_BIT_LEFT, TRACK_BIT_LOWER, TRACK_BIT_RIGHT, TRACK_BIT_UPPER, }; +/* The default multiplier for the cost of building different types of railway + * track, which will be divided by 8. Can be changed by newgrf files. */ +const int _default_railtype_cost_multiplier[RAILTYPE_END] = { + 8, 12, 16, 24, +}; +int _railtype_cost_multiplier[RAILTYPE_END]; RailType GetTileRailType(TileIndex tile) { |