mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r9940) -Fix [FS#805]: upgrading a bridge removed roadtypes.
This commit is contained in:
parent
3914f3c85c
commit
e88ff7e96b
|
@ -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. */
|
||||
|
||||
|
|
Loading…
Reference in New Issue