summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-15 16:49:48 +0000
committerrubidium <rubidium@openttd.org>2006-08-15 16:49:48 +0000
commit7d2ceb2063a4769fb92882a8851ed26267fa1e62 (patch)
treea8dc2bb9573156c15f1089772e4b388b37989f2d /misc_gui.c
parentfda8bf2a226ded4d22c9c03ec965c340768ed9bd (diff)
downloadopenttd-7d2ceb2063a4769fb92882a8851ed26267fa1e62.tar.xz
(svn r5918) -Cleanup: rename ConvertDayToYMD/ConvertYMDToDay as they really convert a Date to/from a YearMonthDay.
-Cleanup: swap ConvertDateToYMD's parameters to make the order consistent with the name of the function.
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc_gui.c b/misc_gui.c
index 67fff0289..0036fc969 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -1675,11 +1675,11 @@ extern void EnginesMonthlyLoop(void);
static int32 ClickChangeDateCheat(int32 p1, int32 p2)
{
YearMonthDay ymd;
- ConvertDayToYMD(&ymd, _date);
+ ConvertDateToYMD(_date, &ymd);
if ((BASE_YEAR + ymd.year == MIN_YEAR && p2 == -1) || (BASE_YEAR + ymd.year == MAX_YEAR && p2 == 1)) return _cur_year;
- SetDate(ConvertYMDToDay(_cur_year + p2, ymd.month, ymd.day));
+ SetDate(ConvertYMDToDate(_cur_year + p2, ymd.month, ymd.day));
EnginesMonthlyLoop();
SetWindowDirty(FindWindowById(WC_STATUS_BAR, 0));
return _cur_year;