summaryrefslogtreecommitdiff
path: root/src/toolbar_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-22 09:18:01 +0000
committerrubidium <rubidium@openttd.org>2010-08-22 09:18:01 +0000
commit56a263070f3afb6dfea3bdc5113874f8db66b23a (patch)
tree77bac298035e5812105822e93d8772de2aa8f050 /src/toolbar_gui.cpp
parentfba7ce392d753a1646919eebd7a277f87262e0e5 (diff)
downloadopenttd-56a263070f3afb6dfea3bdc5113874f8db66b23a.tar.xz
(svn r20591) -Codechange: make sure _date_fract is set when SetDate is called. Some places wouldn't reset _date_fract correctly at all
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r--src/toolbar_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index b4553fd73..9ceecf4ad 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -825,7 +825,7 @@ static void ToolbarScenDateBackward(Window *w)
w->SetDirty();
_settings_game.game_creation.starting_year = Clamp(_settings_game.game_creation.starting_year - 1, MIN_YEAR, MAX_YEAR);
- SetDate(ConvertYMDToDate(_settings_game.game_creation.starting_year, 0, 1));
+ SetDate(ConvertYMDToDate(_settings_game.game_creation.starting_year, 0, 1), 0);
}
_left_button_clicked = false;
}
@@ -838,7 +838,7 @@ static void ToolbarScenDateForward(Window *w)
w->SetDirty();
_settings_game.game_creation.starting_year = Clamp(_settings_game.game_creation.starting_year + 1, MIN_YEAR, MAX_YEAR);
- SetDate(ConvertYMDToDate(_settings_game.game_creation.starting_year, 0, 1));
+ SetDate(ConvertYMDToDate(_settings_game.game_creation.starting_year, 0, 1), 0);
}
_left_button_clicked = false;
}