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_cmd.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_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 92753c05c..973737db1 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -394,7 +394,7 @@ CommandCost CmdBuildSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p YapfNotifyTrackLayoutChange(tile, track); } - return cost.AddCost(_price.build_rail); + return cost.AddCost(RailBuildCost(railtype)); } /** Remove a single piece of track @@ -1092,7 +1092,7 @@ static CommandCost DoConvertRail(TileIndex tile, RailType totype, bool exec) VehicleFromPos(tile, &tile, UpdateTrainPowerProc); } - return CommandCost(_price.build_rail / 2); + return CommandCost(RailBuildCost(totype) / 2); } extern CommandCost DoConvertStationRail(TileIndex tile, RailType totype, bool exec); |