summaryrefslogtreecommitdiff
path: root/src/cheat_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/cheat_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/cheat_gui.cpp')
-rw-r--r--src/cheat_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp
index 94b9e64a3..cc7bbd574 100644
--- a/src/cheat_gui.cpp
+++ b/src/cheat_gui.cpp
@@ -101,7 +101,7 @@ static int32 ClickChangeDateCheat(int32 p1, int32 p2)
if ((ymd.year == MIN_YEAR && p2 == -1) || (ymd.year == MAX_YEAR && p2 == 1)) return _cur_year;
- SetDate(ConvertYMDToDate(_cur_year + p2, ymd.month, ymd.day));
+ SetDate(ConvertYMDToDate(_cur_year + p2, ymd.month, ymd.day), _date_fract);
EnginesMonthlyLoop();
SetWindowDirty(WC_STATUS_BAR, 0);
InvalidateWindowClassesData(WC_BUILD_STATION, 0);