(svn r21609) -Fix (r21545,r21552,r21580,r21586): Restore diagonal clearing of areas.

This commit is contained in:
alberth 2010-12-23 14:38:01 +00:00
parent 90780fd25b
commit 802ec80c5d
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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;