From c4d7eca70305519d9ff4cdd9f808db8a59a88965 Mon Sep 17 00:00:00 2001 From: Pavel Stupnikov Date: Tue, 17 Mar 2015 05:28:00 +0300 Subject: [PATCH] fix rail depot autorotation --HG-- branch : novattd150 --- src/rail_gui.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 1b4837a103..f1da5a2400 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -1914,6 +1914,7 @@ struct BuildRailDepotWindow : public PickerWindowBase { case WID_BRAD_DEPOT_SE: case WID_BRAD_DEPOT_SW: case WID_BRAD_DEPOT_NW: + case WID_BRAD_DEPOT_AUTO: this->RaiseWidget(_build_depot_direction + WID_BRAD_DEPOT_NE); _build_depot_direction = (DiagDirection)(widget - WID_BRAD_DEPOT_NE); this->LowerWidget(_build_depot_direction + WID_BRAD_DEPOT_NE); @@ -1951,6 +1952,9 @@ static const NWidgetPart _nested_build_depot_widgets[] = { EndContainer(), NWidget(NWID_SPACER), SetMinimalSize(3, 0), SetFill(1, 0), EndContainer(), + NWidget(NWID_HORIZONTAL), SetPIP(2, 2, 2), + NWidget(WWT_TEXTBTN, COLOUR_GREY, WID_BRAD_DEPOT_AUTO), SetMinimalSize(134, 12), SetDataTip(STR_STATION_BUILD_ORIENTATION_AUTO, STR_BUILD_DEPOT_TRAIN_ORIENTATION_AUTO_TOOLTIP), + EndContainer(), NWidget(NWID_SPACER), SetMinimalSize(0, 3), EndContainer(), };