mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r21609) -Fix (r21545,r21552,r21580,r21586): Restore diagonal clearing of areas.
This commit is contained in:
parent
90780fd25b
commit
802ec80c5d
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue