summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-26 20:30:40 +0000
committerrubidium <rubidium@openttd.org>2007-05-26 20:30:40 +0000
commite88ff7e96b972d61df9fc36b7327fa9bd87bbf80 (patch)
tree211b1298c89e183bd4fe2fd10001073dda560b5e /src
parent3914f3c85c76d5a770af43cf9c62eb045251604e (diff)
downloadopenttd-e88ff7e96b972d61df9fc36b7327fa9bd87bbf80.tar.xz
(svn r9940) -Fix [FS#805]: upgrading a bridge removed roadtypes.
Diffstat (limited to 'src')
-rw-r--r--src/tunnelbridge_cmd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index 9f22ce156..8c2ee05cd 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -304,6 +304,9 @@ int32 CmdBuildBridge(TileIndex end_tile, uint32 flags, uint32 p1, uint32 p2)
cost = (bridge_len + 1) * _price.clear_bridge; // The cost of clearing the current bridge.
replace_bridge = true;
replaced_bridge_type = GetBridgeType(tile_start);
+
+ /* Do not remove road types when upgrading a bridge */
+ roadtypes |= GetRoadTypes(tile_start);
} else {
/* Build a new bridge. */