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

Method OnPlacePresize

src/road_gui.cpp:819–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817 }
818
819 void OnPlacePresize([[maybe_unused]] Point pt, TileIndex tile) override
820 {
821 Command<CMD_BUILD_TUNNEL>::Do(DoCommandFlag::Auto, tile, TRANSPORT_ROAD, _cur_roadtype);
822 VpSetPresizeRange(tile, _build_tunnel_endtile == 0 ? tile : _build_tunnel_endtile);
823 }
824
825 EventState OnCTRLStateChange() override
826 {

Callers

nothing calls this directly

Calls 1

VpSetPresizeRangeFunction · 0.85

Tested by

no test coverage detected