From 802ec80c5d399aa953344636005ed26286317fb7 Mon Sep 17 00:00:00 2001 From: alberth Date: Thu, 23 Dec 2010 14:38:01 +0000 Subject: [PATCH] (svn r21609) -Fix (r21545,r21552,r21580,r21586): Restore diagonal clearing of areas. --- src/airport_gui.cpp | 2 +- src/dock_gui.cpp | 2 +- src/rail_gui.cpp | 2 +- src/road_gui.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp index 0c903d2427..5d982b04c9 100644 --- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -96,7 +96,7 @@ struct BuildAirToolbarWindow : Window { break; case ATW_DEMOLISH: - HandlePlacePushButton(this, ATW_DEMOLISH, ANIMCURSOR_DEMOLISH, HT_RECT, NULL); + HandlePlacePushButton(this, ATW_DEMOLISH, ANIMCURSOR_DEMOLISH, HT_RECT | HT_DIAGONAL, NULL); this->last_user_action = widget; break; diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp index 2255797d3e..efed01ece8 100644 --- a/src/dock_gui.cpp +++ b/src/dock_gui.cpp @@ -142,7 +142,7 @@ struct BuildDocksToolbarWindow : Window { break; case DTW_DEMOLISH: // Demolish aka dynamite button - HandlePlacePushButton(this, DTW_DEMOLISH, ANIMCURSOR_DEMOLISH, HT_RECT, NULL); + HandlePlacePushButton(this, DTW_DEMOLISH, ANIMCURSOR_DEMOLISH, HT_RECT | HT_DIAGONAL, NULL); break; case DTW_DEPOT: // Build depot button diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 7f76be9733..4699270b88 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -540,7 +540,7 @@ struct BuildRailToolbarWindow : Window { break; case RTW_DEMOLISH: - HandlePlacePushButton(this, RTW_DEMOLISH, ANIMCURSOR_DEMOLISH, HT_RECT, NULL); + HandlePlacePushButton(this, RTW_DEMOLISH, ANIMCURSOR_DEMOLISH, HT_RECT | HT_DIAGONAL, NULL); this->last_user_action = widget; break; diff --git a/src/road_gui.cpp b/src/road_gui.cpp index 8205bc68ce..2097991b61 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -401,7 +401,7 @@ struct BuildRoadToolbarWindow : Window { break; case RTW_DEMOLISH: - HandlePlacePushButton(this, RTW_DEMOLISH, ANIMCURSOR_DEMOLISH, HT_RECT, NULL); + HandlePlacePushButton(this, RTW_DEMOLISH, ANIMCURSOR_DEMOLISH, HT_RECT | HT_DIAGONAL, NULL); this->last_started_action = widget; break;