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

Function buildNewVehicles

src/OpenLoco/src/Input/Shortcuts.cpp:399–413  ·  view source on GitHub ↗

0x004BF2B4

Source from the content-addressed store, hash-verified

397
398 // 0x004BF2B4
399 static void buildNewVehicles()
400 {
401 if (SceneManager::isEditorMode())
402 {
403 return;
404 }
405
406 // This can't ever happen as nothing sets it to 0xFFU
407 if (enumValue(getGameState().lastBuildVehiclesOption) == 0xFF)
408 {
409 return;
410 }
411
412 Windows::BuildVehicle::openByType(getGameState().lastBuildVehiclesOption);
413 }
414
415 // 0x004BF2D1
416 static void showVehiclesList()

Callers

nothing calls this directly

Calls 3

isEditorModeFunction · 0.85
enumValueFunction · 0.85
openByTypeFunction · 0.85

Tested by

no test coverage detected