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

Function setGameSpeed

src/OpenLoco/src/SceneManager.cpp:151–159  ·  view source on GitHub ↗

0x00439A70 (speed: 0) 0x00439A93 (speed: 1) 0x00439AB6 (speed: 2)

Source from the content-addressed store, hash-verified

149 // 0x00439A93 (speed: 1)
150 // 0x00439AB6 (speed: 2)
151 void setGameSpeed(const GameSpeed speed)
152 {
153 assert(speed <= GameSpeed::MAX);
154 if (_gameSpeed != speed)
155 {
156 _gameSpeed = speed;
157 Ui::WindowManager::invalidate(Ui::WindowType::timeToolbar);
158 }
159 }
160}

Callers 2

initFunction · 0.70
startFunction · 0.70

Calls 1

invalidateFunction · 0.70

Tested by

no test coverage detected