(svn r11587) -Fix (r11457): The one way road button wasn't reset on abort

This commit is contained in:
skidd13 2007-12-07 17:51:27 +00:00
parent 10e17c30a3
commit 98bd772119

View File

@ -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;