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

Method OnInitialPosition

src/road_gui.cpp:727–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725 }
726
727 Point OnInitialPosition(int16_t sm_width, [[maybe_unused]] int16_t sm_height, [[maybe_unused]] int window_number) override
728 {
729 return AlignInitialConstructionToolbar(sm_width);
730 }
731
732 void OnPlaceMouseUp([[maybe_unused]] ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, [[maybe_unused]] Point pt, TileIndex start_tile, TileIndex end_tile) override
733 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected