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

Method UpdateDocksDirection

src/dock_gui.cpp:519–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517struct BuildDocksDepotWindow : public PickerWindowBase {
518private:
519 static void UpdateDocksDirection()
520 {
521 if (_ship_depot_direction != AXIS_X) {
522 SetTileSelectSize(1, 2);
523 } else {
524 SetTileSelectSize(2, 1);
525 }
526 }
527
528public:
529 BuildDocksDepotWindow(WindowDesc &desc, Window *parent) : PickerWindowBase(desc, parent)

Callers

nothing calls this directly

Calls 1

SetTileSelectSizeFunction · 0.85

Tested by

no test coverage detected