Mercurial > hg > openttd
changeset 4733:ed178a2794db draft
(svn r6645) -Fix(r6631): Forgot two click_state occurences
author | belugas <belugas@openttd.org> |
---|---|
date | Thu, 05 Oct 2006 02:29:01 +0000 |
parents | e69481bcedc7 |
children | f74ea9e005be |
files | depot_gui.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/depot_gui.c +++ b/depot_gui.c @@ -652,9 +652,9 @@ 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 {