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

Function rightReleasedWall

src/OpenLoco/src/Ui/ViewportInteraction.cpp:1203–1210  ·  view source on GitHub ↗

0x004C4809

Source from the content-addressed store, hash-verified

1201
1202 // 0x004C4809
1203 static void rightReleasedWall(World::WallElement* wall, const World::Pos2 pos)
1204 {
1205 GameCommands::setErrorTitle(StringIds::error_cant_remove_this);
1206 GameCommands::WallRemovalArgs args;
1207 args.pos = Pos3(pos.x, pos.y, wall->baseHeight());
1208 args.rotation = wall->rotation();
1209 GameCommands::doCommand(args, GameCommands::Flags::apply);
1210 }
1211
1212 // 0x0042F007
1213 static void rightReleasedHeadquarter(World::BuildingElement* building, const World::Pos2 pos)

Callers 1

handleRightReleasedFunction · 0.85

Calls 4

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

Tested by

no test coverage detected