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

Function rightReleasedBuilding

src/OpenLoco/src/Ui/ViewportInteraction.cpp:1193–1200  ·  view source on GitHub ↗

0x0042D9BF

Source from the content-addressed store, hash-verified

1191
1192 // 0x0042D9BF
1193 static void rightReleasedBuilding(World::BuildingElement* building, const World::Pos2 pos)
1194 {
1195 GameCommands::setErrorTitle(StringIds::error_cant_remove_this);
1196 GameCommands::BuildingRemovalArgs args;
1197 Pos2 firstTile = pos - World::kOffsets[building->sequenceIndex()];
1198 args.pos = Pos3(firstTile.x, firstTile.y, building->baseHeight());
1199 GameCommands::doCommand(args, GameCommands::Flags::apply);
1200 }
1201
1202 // 0x004C4809
1203 static void rightReleasedWall(World::WallElement* wall, const World::Pos2 pos)

Callers 1

handleRightReleasedFunction · 0.85

Calls 4

setErrorTitleFunction · 0.85
baseHeightMethod · 0.80
doCommandFunction · 0.50
sequenceIndexMethod · 0.45

Tested by

no test coverage detected