MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ToolbarFastForwardClick

Function ToolbarFastForwardClick

src/toolbar_gui.cpp:224–232  ·  view source on GitHub ↗

* Toggle fast forward mode. * * @return #CBF_NONE */

Source from the content-addressed store, hash-verified

222 * @return #CBF_NONE
223 */
224static CallBackFunction ToolbarFastForwardClick(Window *)
225{
226 if (_networking) return CBF_NONE; // no fast forward in network game
227
228 ChangeGameSpeed(_game_speed == 100);
229
230 SndClickBeep();
231 return CBF_NONE;
232}
233
234/**
235 * Game Option button menu entries.

Callers 2

OnHotkeyMethod · 0.85
OnHotkeyMethod · 0.85

Calls 2

ChangeGameSpeedFunction · 0.85
SndClickBeepFunction · 0.85

Tested by

no test coverage detected