diff options
author | alberth <alberth@openttd.org> | 2009-12-22 20:43:25 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-12-22 20:43:25 +0000 |
commit | 3323d64f280cea84addc96d0018adaf93bb4e43b (patch) | |
tree | 3b19aa044205e1e454be4842a12f956840d49b0b /src/build_vehicle_gui.cpp | |
parent | 7dbc77a1e74be00f520e84fa1605a9ba42a05879 (diff) | |
download | openttd-3323d64f280cea84addc96d0018adaf93bb4e43b.tar.xz |
(svn r18606) -Codechange: Introduce several forms of zero-size stacked display planes.
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r-- | src/build_vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index 9a8bb4320..50a1ffd49 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -817,7 +817,7 @@ struct BuildVehicleWindow : Window { /* If we are just viewing the list of vehicles, we do not need the Build button. * So we just hide it, and enlarge the Rename buton by the now vacant place. */ - if (this->listview_mode) this->GetWidget<NWidgetStacked>(BUILD_VEHICLE_WIDGET_BUILD_SEL)->SetDisplayedPlane(STACKED_SELECTION_ZERO_SIZE); + if (this->listview_mode) this->GetWidget<NWidgetStacked>(BUILD_VEHICLE_WIDGET_BUILD_SEL)->SetDisplayedPlane(SZSP_NONE); NWidgetCore *widget = this->GetWidget<NWidgetCore>(BUILD_VEHICLE_WIDGET_LIST); widget->tool_tip = STR_BUY_VEHICLE_TRAIN_LIST_TOOLTIP + type; |