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

Method OnPlaceObject

src/toolbar_gui.cpp:2073–2086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2071 }
2072
2073 void OnPlaceObject([[maybe_unused]] Point pt, TileIndex tile) override
2074 {
2075 switch (_last_started_action) {
2076 case CBF_PLACE_SIGN:
2077 PlaceProc_Sign(tile);
2078 break;
2079
2080 case CBF_PLACE_LANDINFO:
2081 ShowLandInfo(tile);
2082 break;
2083
2084 default: NOT_REACHED();
2085 }
2086 }
2087
2088 void OnPlaceObjectAbort() override
2089 {

Callers

nothing calls this directly

Calls 3

PlaceProc_SignFunction · 0.85
ShowLandInfoFunction · 0.85
NOT_REACHEDFunction · 0.85

Tested by

no test coverage detected