mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r11587) -Fix (r11457): The one way road button wasn't reset on abort
This commit is contained in:
parent
10e17c30a3
commit
98bd772119
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user