From 2395b33bdcb155560ba5ae9ad239813b0f13e0d3 Mon Sep 17 00:00:00 2001 From: keldorkatarn Date: Fri, 20 Apr 2018 19:41:17 +0200 Subject: [PATCH] Custom bridgeheads: Fix missing check to allow removal of certain roadbits from a custom bridgehead. --- src/road_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index 6062f6c75..2ec5bdfd4 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -218,7 +218,7 @@ static CommandCost RemoveRoad(TileIndex tile, DoCommandFlag flags, RoadBits piec (_settings_game.construction.road_custom_bridge_heads || IsRoadCustomBridgeHead(tile)); /* If it's the last roadtype, just clear the whole tile */ - if (rts == RoadTypeToRoadTypes(rt)) return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); + if (!custom_bridge_head && rts == RoadTypeToRoadTypes(rt)) return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); CommandCost cost(EXPENSES_CONSTRUCTION); if (IsTileType(tile, MP_TUNNELBRIDGE)) { -- 2.11.4.GIT