From 802ec80c5d399aa953344636005ed26286317fb7 Mon Sep 17 00:00:00 2001 From: alberth Date: Thu, 23 Dec 2010 14:38:01 +0000 Subject: (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 0c903d242..5d982b04c 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 2255797d3..efed01ece 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 7f76be973..4699270b8 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 8205bc68c..2097991b6 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; -- cgit v1.2.3-70-g09d2