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

Function cancelConstructionMode

src/OpenLoco/src/Input/Shortcuts.cpp:39–52  ·  view source on GitHub ↗

0x004BF0BC

Source from the content-addressed store, hash-verified

37
38 // 0x004BF0BC
39 static void cancelConstructionMode()
40 {
41 auto* w = WindowManager::find(WindowType::error);
42 if (w != nullptr)
43 {
44 WindowManager::close(w);
45 return;
46 }
47
48 if (!Ui::Windows::Vehicle::cancelVehicleTools())
49 {
50 ToolManager::toolCancel();
51 }
52 }
53
54 // 0x004BF0E6
55 static void pauseUnpauseGame()

Callers

nothing calls this directly

Calls 4

findFunction · 0.85
cancelVehicleToolsFunction · 0.85
closeFunction · 0.50
toolCancelFunction · 0.50

Tested by

no test coverage detected