diff options
author | alberth <alberth@openttd.org> | 2010-12-23 14:38:01 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-12-23 14:38:01 +0000 |
commit | 802ec80c5d399aa953344636005ed26286317fb7 (patch) | |
tree | 82576410fc9f20d978c618793391c1ec1e160059 | |
parent | 90780fd25bab45fb97304337f10b78c9210a7190 (diff) | |
download | openttd-802ec80c5d399aa953344636005ed26286317fb7.tar.xz |
(svn r21609) -Fix (r21545,r21552,r21580,r21586): Restore diagonal clearing of areas.
-rw-r--r-- | src/airport_gui.cpp | 2 | ||||
-rw-r--r-- | src/dock_gui.cpp | 2 | ||||
-rw-r--r-- | src/rail_gui.cpp | 2 | ||||
-rw-r--r-- | 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; |