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

Function ToolbarScenDateForward

src/toolbar_gui.cpp:1213–1224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1211}
1212
1213static CallBackFunction ToolbarScenDateForward(Window *w)
1214{
1215 /* don't allow too fast scrolling */
1216 if (!w->flags.Test(WindowFlag::Timeout) || w->timeout_timer <= 1) {
1217 w->HandleButtonClick(WID_TE_DATE_FORWARD);
1218 w->SetDirty();
1219
1220 SetStartingYear(_settings_game.game_creation.starting_year + 1);
1221 }
1222 _left_button_clicked = false;
1223 return CBF_NONE;
1224}
1225
1226static CallBackFunction ToolbarScenGenLand(Window *w)
1227{

Callers

nothing calls this directly

Calls 4

SetStartingYearFunction · 0.85
TestMethod · 0.80
HandleButtonClickMethod · 0.80
SetDirtyMethod · 0.45

Tested by

no test coverage detected