summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2007-12-08 19:53:30 +0000
committersmatz <smatz@openttd.org>2007-12-08 19:53:30 +0000
commit911273948b79c46c4c5b90e5e6273ac7786d1290 (patch)
tree94c6bceeae9a2d453ac8cce16bd83009b7e5a776 /src/station_cmd.cpp
parent08d73eb6968765fe351db96c05b1a06bf5b1072f (diff)
downloadopenttd-911273948b79c46c4c5b90e5e6273ac7786d1290.tar.xz
(svn r11603) -Fix [FS#1481]: make price for railtype conversion more realistic
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index c240fc9e7..dabb64646 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -1309,7 +1309,7 @@ CommandCost DoConvertStationRail(TileIndex tile, RailType totype, bool exec)
VehicleFromPos(tile, &tile, UpdateTrainPowerProc);
}
- return CommandCost(RailBuildCost(totype) / 2);
+ return CommandCost(RailConvertCost(GetRailType(tile), totype));
}
/**