diff options
author | rubidium <rubidium@openttd.org> | 2009-11-16 20:34:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-16 20:34:57 +0000 |
commit | 626de6b128f3580c9559b2d09b15bb4ed314a20a (patch) | |
tree | 93239d913d9ad578483f4e7cbd42e76427bcf7a5 /src/group_gui.cpp | |
parent | cb3c4f2ebe01b91562ecf21b56742e31b4086d91 (diff) | |
download | openttd-626de6b128f3580c9559b2d09b15bb4ed314a20a.tar.xz |
(svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r-- | src/group_gui.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp index bf5e55320..58b516bb2 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -208,23 +208,6 @@ public: this->vehicle_type = (VehicleType)GB(window_number, 11, 5); switch (this->vehicle_type) { default: NOT_REACHED(); - case VEH_TRAIN: - case VEH_ROAD: - this->vscroll2.SetCapacity(9); - this->vscroll.SetCapacity(6); - break; - case VEH_SHIP: - case VEH_AIRCRAFT: - this->vscroll2.SetCapacity(9); - this->vscroll.SetCapacity(4); - break; - } - - this->GetWidget<NWidgetCore>(GRP_WIDGET_LIST_GROUP)->widget_data = (this->vscroll2.GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START); - this->GetWidget<NWidgetCore>(GRP_WIDGET_LIST_VEHICLE)->widget_data = (this->vscroll.GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START); - - switch (this->vehicle_type) { - default: NOT_REACHED(); case VEH_TRAIN: this->sorting = &_sorting.train; break; case VEH_ROAD: this->sorting = &_sorting.roadveh; break; case VEH_SHIP: this->sorting = &_sorting.ship; break; |