MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SelectSortOrder

Method SelectSortOrder

src/station_gui.cpp:2041–2046  ·  view source on GitHub ↗

* Select a new sort order for the cargo view. * @param order New sort order. */

Source from the content-addressed store, hash-verified

2039 * @param order New sort order.
2040 */
2041 void SelectSortOrder(SortOrder order)
2042 {
2043 this->sort_orders[1] = this->sort_orders[2] = this->sort_orders[3] = order;
2044 _settings_client.gui.station_gui_sort_order = this->sort_orders[1];
2045 this->SetDirty();
2046 }
2047
2048 /**
2049 * Select a new sort criterium for the cargo view.

Callers 2

StationViewWindowMethod · 0.95
OnClickMethod · 0.95

Calls 1

SetDirtyMethod · 0.45

Tested by

no test coverage detected