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

Function setGameSpeed

src/OpenLoco/src/GameCommands/General/SetGameSpeed.cpp:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace OpenLoco::GameCommands
6{
7 static uint32_t setGameSpeed(const GameSpeed speed)
8 {
9 if (speed > GameSpeed::MAX)
10 {
11 return kFailure;
12 }
13
14 SceneManager::setGameSpeed(speed);
15 return 0;
16 }
17
18 void setGameSpeed(registers& regs)
19 {

Callers 2

importSaveToGameStateFunction · 0.50
doCommandForRealFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected