(svn r21609) -Fix (r21545,r21552,r21580,r21586): Restore diagonal clearing of areas.
This commit is contained in:
@@ -96,7 +96,7 @@ struct BuildAirToolbarWindow : Window {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case ATW_DEMOLISH:
|
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;
|
this->last_user_action = widget;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@@ -142,7 +142,7 @@ struct BuildDocksToolbarWindow : Window {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case DTW_DEMOLISH: // Demolish aka dynamite button
|
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;
|
break;
|
||||||
|
|
||||||
case DTW_DEPOT: // Build depot button
|
case DTW_DEPOT: // Build depot button
|
||||||
|
@@ -540,7 +540,7 @@ struct BuildRailToolbarWindow : Window {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case RTW_DEMOLISH:
|
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;
|
this->last_user_action = widget;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@@ -401,7 +401,7 @@ struct BuildRoadToolbarWindow : Window {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case RTW_DEMOLISH:
|
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;
|
this->last_started_action = widget;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user