mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +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;
|
break;
|
||||||
|
|
||||||
case WE_ABORT_PLACE_OBJ:
|
case WE_ABORT_PLACE_OBJ:
|
||||||
RaiseWindowButtons(w);
|
w->RaiseButtons();
|
||||||
w->DisableWidget(RTW_REMOVE);
|
w->SetWidgetsDisabledState(true,
|
||||||
InvalidateWidget(w, RTW_REMOVE);
|
RTW_REMOVE,
|
||||||
|
RTW_ONE_WAY,
|
||||||
|
WIDGET_LIST_END);
|
||||||
|
w->InvalidateWidget(RTW_REMOVE);
|
||||||
|
w->InvalidateWidget(RTW_ONE_WAY);
|
||||||
|
|
||||||
w = FindWindowById(WC_BUS_STATION, 0);
|
w = FindWindowById(WC_BUS_STATION, 0);
|
||||||
if (w != NULL) WP(w, def_d).close = true;
|
if (w != NULL) WP(w, def_d).close = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user