summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-04-26 10:26:07 +0000
committerfrosch <frosch@openttd.org>2015-04-26 10:26:07 +0000
commite3c8e8e8e8b666ad2a41ff59d9af5e8c64c204e6 (patch)
tree3cce81eb6eeac54364920a722058b2f1ace96f70
parent3a82bae0d3b1010f5ad64606a36416d72b1fc380 (diff)
downloadopenttd-e3c8e8e8e8b666ad2a41ff59d9af5e8c64c204e6.tar.xz
(svn r27253) -Fix [FS#6282]: When crossing tram tracks with railroads, cost of extra roads was not being counted. (adf88)
-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 8a15808c2..1fcdab073 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -501,6 +501,7 @@ CommandCost CmdBuildSingleRail(TileIndex tile, DoCommandFlag flags, uint32 p1, u
}
}
roadtypes |= ROADTYPES_ROAD;
+ cost.AddCost(2 * _price[PR_BUILD_ROAD]);
break;
case ROADTYPES_ALL: