diff options
author | glx <glx@openttd.org> | 2007-12-07 18:05:49 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-12-07 18:05:49 +0000 |
commit | c21f588a14f30fed3d683b4686975670adaf7ed5 (patch) | |
tree | d911871e265f9cc64abdaac46967f9c90de70315 /src/order_gui.cpp | |
parent | 98bd772119d0b603a53b31a875b5a2bc7e9108f7 (diff) | |
download | openttd-c21f588a14f30fed3d683b4686975670adaf7ed5.tar.xz |
(svn r11588) -Codechange: use the new member introduced in r11551
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r-- | src/order_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp index 42641a39e..8c3ff29b4 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -397,7 +397,7 @@ static void OrdersPlaceObj(const Vehicle *v, TileIndex tile, Window *w) */ static void OrderClick_Goto(Window *w, const Vehicle *v) { - InvalidateWidget(w, ORDER_WIDGET_GOTO); + w->InvalidateWidget(ORDER_WIDGET_GOTO); w->ToggleWidgetLoweredState(ORDER_WIDGET_GOTO); if (w->IsWidgetLowered(ORDER_WIDGET_GOTO)) { _place_clicked_vehicle = NULL; @@ -700,7 +700,7 @@ static void OrdersWndProc(Window *w, WindowEvent *e) case WE_ABORT_PLACE_OBJ: { w->RaiseWidget(ORDER_WIDGET_GOTO); - InvalidateWidget( w, ORDER_WIDGET_GOTO); + w->InvalidateWidget(ORDER_WIDGET_GOTO); } break; // check if a vehicle in a depot was clicked.. @@ -731,7 +731,7 @@ static void OrdersWndProc(Window *w, WindowEvent *e) for (i = 0; i < w->widget_count; i++) { if (w->IsWidgetLowered(i) && i != ORDER_WIDGET_GOTO) { w->RaiseWidget(i); - InvalidateWidget(w, i); + w->InvalidateWidget(i); } } } break; |