MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / rightReleasedTree

Function rightReleasedTree

src/OpenLoco/src/Ui/ViewportInteraction.cpp:1182–1190  ·  view source on GitHub ↗

0x004BB116

Source from the content-addressed store, hash-verified

1180
1181 // 0x004BB116
1182 static void rightReleasedTree(World::TreeElement* tree, const World::Pos2 pos)
1183 {
1184 GameCommands::setErrorTitle(StringIds::error_cant_remove_this);
1185 GameCommands::TreeRemovalArgs args;
1186 args.pos = Pos3(pos.x, pos.y, tree->baseHeight());
1187 args.elementType = tree->rawData()[0];
1188 args.type = tree->treeObjectId();
1189 GameCommands::doCommand(args, GameCommands::Flags::apply);
1190 }
1191
1192 // 0x0042D9BF
1193 static void rightReleasedBuilding(World::BuildingElement* building, const World::Pos2 pos)

Callers 1

handleRightReleasedFunction · 0.85

Calls 5

setErrorTitleFunction · 0.85
baseHeightMethod · 0.80
rawDataMethod · 0.80
treeObjectIdMethod · 0.80
doCommandFunction · 0.50

Tested by

no test coverage detected