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

Method OnPlacePresize

src/rail_gui.cpp:815–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813 }
814
815 void OnPlacePresize([[maybe_unused]] Point pt, TileIndex tile) override
816 {
817 Command<CMD_BUILD_TUNNEL>::Do(DoCommandFlag::Auto, tile, TRANSPORT_RAIL, _cur_railtype);
818 VpSetPresizeRange(tile, _build_tunnel_endtile == 0 ? tile : _build_tunnel_endtile);
819 }
820
821 EventState OnCTRLStateChange() override
822 {

Callers

nothing calls this directly

Calls 1

VpSetPresizeRangeFunction · 0.85

Tested by

no test coverage detected