@@ -638,6 +638,7 @@ public:
void OnDropdownSelect(int widget, int index) override
{
if (widget == WID_STL_SORTDROPBTN) {
if (this->stations.SortType() != index) {
this->stations.SetSortType(index);
@@ -647,6 +648,7 @@ public:
this->SetDirty();
}
void OnGameTick() override
@@ -1466,10 +1468,12 @@ struct StationViewWindow : public Window
void SetStringParameters(int widget) const override
if (widget == WID_SV_CAPTION) {
const Station *st = Station::Get(this->window_number);
SetDParam(0, st->index);
SetDParam(1, st->facilities);
/**
* Rebuild the cache for estimated destinations which is used to quickly show the "destination" entries