diff options
author | skidd13 <skidd13@openttd.org> | 2007-12-07 17:51:27 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-12-07 17:51:27 +0000 |
commit | 30a5f9abf3c004d381cde4248040c7698686c827 (patch) | |
tree | 08608ddbd8ea54bb37f069f8d8a107276789d08b | |
parent | d129a7295caa5f5d39f66d0f93e463d418fa0ad9 (diff) | |
download | openttd-30a5f9abf3c004d381cde4248040c7698686c827.tar.xz |
(svn r11587) -Fix (r11457): The one way road button wasn't reset on abort
-rw-r--r-- | src/road_gui.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp index 5e9abf4de..c7b984c61 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -467,9 +467,13 @@ static void BuildRoadToolbWndProc(Window *w, WindowEvent *e) break; case WE_ABORT_PLACE_OBJ: - RaiseWindowButtons(w); - w->DisableWidget(RTW_REMOVE); - InvalidateWidget(w, RTW_REMOVE); + w->RaiseButtons(); + w->SetWidgetsDisabledState(true, + RTW_REMOVE, + RTW_ONE_WAY, + WIDGET_LIST_END); + w->InvalidateWidget(RTW_REMOVE); + w->InvalidateWidget(RTW_ONE_WAY); w = FindWindowById(WC_BUS_STATION, 0); if (w != NULL) WP(w, def_d).close = true; |