Mercurial > hg > openttd
changeset 16875:c037855d747c draft
(svn r21609) -Fix (r21545,r21552,r21580,r21586): Restore diagonal clearing of areas.
author | alberth <alberth@openttd.org> |
---|---|
date | Thu, 23 Dec 2010 14:38:01 +0000 |
parents | 36a0efc02dea |
children | c7c0de185dff |
files | src/airport_gui.cpp src/dock_gui.cpp src/rail_gui.cpp src/road_gui.cpp |
diffstat | 4 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -96,7 +96,7 @@ 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;
--- a/src/dock_gui.cpp +++ b/src/dock_gui.cpp @@ -142,7 +142,7 @@ 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
--- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -540,7 +540,7 @@ 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;
--- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -401,7 +401,7 @@ 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;