mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r6645) -Fix(r6631): Forgot two click_state occurences
This commit is contained in:
parent
66206867fe
commit
7606b2707d
|
@ -652,9 +652,9 @@ static void DepotWndProc(Window *w, WindowEvent *e)
|
|||
|
||||
case DEPOT_WIDGET_CLONE: // Clone button
|
||||
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;
|
||||
SetObjectToPlaceWnd(SPR_CURSOR_CLONE, VHM_RECT, w);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue