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

Method OnPlaceObject

src/toolbar_gui.cpp:2442–2455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2440 }
2441
2442 void OnPlaceObject([[maybe_unused]] Point pt, TileIndex tile) override
2443 {
2444 switch (_last_started_action) {
2445 case CBF_PLACE_SIGN:
2446 PlaceProc_Sign(tile);
2447 break;
2448
2449 case CBF_PLACE_LANDINFO:
2450 ShowLandInfo(tile);
2451 break;
2452
2453 default: NOT_REACHED();
2454 }
2455 }
2456
2457 void OnPlaceObjectAbort() override
2458 {

Callers

nothing calls this directly

Calls 3

PlaceProc_SignFunction · 0.85
ShowLandInfoFunction · 0.85
NOT_REACHEDFunction · 0.85

Tested by

no test coverage detected