From 77a101280b027b9b6b317ad093e63f4b46eb32d4 Mon Sep 17 00:00:00 2001 From: Juanjo Date: Mon, 14 Oct 2013 17:58:51 +0000 Subject: [PATCH] Set dirty selection tiles when bridge is too long to build. --- src/bridge_gui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bridge_gui.cpp b/src/bridge_gui.cpp index 78e7ff811f..9ce304fed8 100644 --- a/src/bridge_gui.cpp +++ b/src/bridge_gui.cpp @@ -24,6 +24,7 @@ #include "cmd_helper.h" #include "tunnelbridge_map.h" #include "road_gui.h" +#include "tilehighlight_func.h" #include "widgets/bridge_widget.h" @@ -429,6 +430,8 @@ void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transpo new BuildBridgeWindow(&_build_bridge_desc, start, end, type, bl); } else { delete bl; + SetSelectionTilesDirty(); + _thd.Reset(); ShowErrorMessage(STR_ERROR_CAN_T_BUILD_BRIDGE_HERE, errmsg, WL_INFO, TileX(end) * TILE_SIZE, TileY(end) * TILE_SIZE); } }