(svn r6645) -Fix(r6631): Forgot two click_state occurences
This commit is contained in:
@@ -652,9 +652,9 @@ static void DepotWndProc(Window *w, WindowEvent *e)
|
|||||||
|
|
||||||
case DEPOT_WIDGET_CLONE: // Clone button
|
case DEPOT_WIDGET_CLONE: // Clone button
|
||||||
InvalidateWidget(w, DEPOT_WIDGET_CLONE);
|
InvalidateWidget(w, DEPOT_WIDGET_CLONE);
|
||||||
TOGGLEBIT(w->click_state, DEPOT_WIDGET_CLONE);
|
ToggleWidgetLoweredState(w, DEPOT_WIDGET_CLONE);
|
||||||
|
|
||||||
if (HASBIT(w->click_state, DEPOT_WIDGET_CLONE)) {
|
if (IsWindowWidgetLowered(w, DEPOT_WIDGET_CLONE)) {
|
||||||
_place_clicked_vehicle = NULL;
|
_place_clicked_vehicle = NULL;
|
||||||
SetObjectToPlaceWnd(SPR_CURSOR_CLONE, VHM_RECT, w);
|
SetObjectToPlaceWnd(SPR_CURSOR_CLONE, VHM_RECT, w);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user