diff options
author | smatz <smatz@openttd.org> | 2007-12-08 19:53:30 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2007-12-08 19:53:30 +0000 |
commit | 911273948b79c46c4c5b90e5e6273ac7786d1290 (patch) | |
tree | 94c6bceeae9a2d453ac8cce16bd83009b7e5a776 /src/rail_cmd.cpp | |
parent | 08d73eb6968765fe351db96c05b1a06bf5b1072f (diff) | |
download | openttd-911273948b79c46c4c5b90e5e6273ac7786d1290.tar.xz |
(svn r11603) -Fix [FS#1481]: make price for railtype conversion more realistic
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index a507f1981..ac0464ea7 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1201,7 +1201,7 @@ static CommandCost DoConvertRail(TileIndex tile, RailType totype, bool exec) VehicleFromPos(tile, &tile, UpdateTrainPowerProc); } - return CommandCost(RailBuildCost(totype) / 2); + return CommandCost(RailConvertCost(GetRailType(tile), totype) * CountBits(GetTrackBits(tile))); } extern CommandCost DoConvertStationRail(TileIndex tile, RailType totype, bool exec); |