File diff r27942:f7389062d120 → r27943:23c15817f0a5
src/station_gui.cpp
Show inline comments
 
@@ -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