summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rail_cmd.cpp1
-rw-r--r--src/station_cmd.cpp1
2 files changed, 2 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;
}
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index bc9f48e94..f35991808 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -1145,6 +1145,7 @@ CommandCost CmdBuildRailStation(TileIndex tile_org, DoCommandFlag flags, uint32
if (cost.Failed()) return cost;
/* Add construction expenses. */
cost.AddCost((numtracks * _price[PR_BUILD_STATION_RAIL] + _price[PR_BUILD_STATION_RAIL_LENGTH]) * plat_len);
+ cost.AddCost(numtracks * plat_len * RailBuildCost(rt));
Station *st = NULL;
ret = FindJoiningStation(est, station_to_join, adjacent, new_location, &st);