summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-10-05 02:29:01 +0000
committerbelugas <belugas@openttd.org>2006-10-05 02:29:01 +0000
commit7606b2707d5bee3f274e1e0dd58b00decd5110a0 (patch)
treea6c65368b80dcf6a5e94bdcd1f05b439f359f959
parent66206867fe22233e91754f54c88e83fc9f4eca79 (diff)
downloadopenttd-7606b2707d5bee3f274e1e0dd58b00decd5110a0.tar.xz
(svn r6645) -Fix(r6631): Forgot two click_state occurences
-rw-r--r--depot_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/depot_gui.c b/depot_gui.c
index c3b1c1988..d4dab78af 100644
--- a/depot_gui.c
+++ b/depot_gui.c
@@ -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 {