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

Method OnInitialPosition

src/rail_gui.cpp:731–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected