Changeset - r6708:8f38bbf425fc
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-05-26 20:30:40
rubidium@openttd.org
(svn r9940) -Fix [FS#805]: upgrading a bridge removed roadtypes.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -301,12 +301,15 @@ int32 CmdBuildBridge(TileIndex end_tile,
 
			return_cmd_error(STR_1024_AREA_IS_OWNED_BY_ANOTHER);
 
		}
 

	
 
		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. */
 

	
 
		/* Try and clear the start landscape */
 
		ret = DoCommand(tile_start, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
 
		if (CmdFailed(ret)) return ret;
0 comments (0 inline, 0 general)