summaryrefslogtreecommitdiff
path: root/src/rail_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-06-04 21:00:17 +0000
committerrubidium <rubidium@openttd.org>2010-06-04 21:00:17 +0000
commite7f70987a4a616de22ffebcfd1d128d88d0db9a2 (patch)
tree81a3b15fe10623783b5a74410c36e80f0f121106 /src/rail_cmd.cpp
parentf733c3795aa2b9c498ee9ca37ee55cab471094bf (diff)
downloadopenttd-e7f70987a4a616de22ffebcfd1d128d88d0db9a2.tar.xz
(svn r19925) -Fix [FS#3859]: one didn't pay for rail when building depots and stations, so with expensive railtypes building stations and then removing the station would be cheaper than just building the rail
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r--src/rail_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index 59bc30e71..e7f99c204 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -879,6 +879,7 @@ CommandCost CmdBuildTrainDepot(TileIndex tile, DoCommandFlag flags, uint32 p1, u
}
cost.AddCost(_price[PR_BUILD_DEPOT_TRAIN]);
+ cost.AddCost(RailBuildCost(railtype));
return cost;
}