From e7f70987a4a616de22ffebcfd1d128d88d0db9a2 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 4 Jun 2010 21:00:17 +0000 Subject: (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 --- src/station_cmd.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/station_cmd.cpp') 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); -- cgit v1.2.3-54-g00ecf