diff options
author | rubidium <rubidium@openttd.org> | 2006-08-16 11:39:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-08-16 11:39:55 +0000 |
commit | 3cab5f30c06035034bcf5b513c2eee57b8ec11e9 (patch) | |
tree | 90102c4cf1f03e52dfe00d3cd1315b6cd9e6b399 /strings.c | |
parent | 50e96f8ff92bad28741ca3d360a4e7366072748d (diff) | |
download | openttd-3cab5f30c06035034bcf5b513c2eee57b8ec11e9.tar.xz |
(svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920
-Codechange: store all year related variables that are _not_ stored in a savegame/transported over the network in the same format as _cur_year
Diffstat (limited to 'strings.c')
-rw-r--r-- | strings.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -339,7 +339,7 @@ static char *FormatYmdString(char *buff, Date date) for (src = GetStringPtr(STR_0162_JAN + ymd.month); (*buff++ = *src++) != '\0';) {} buff[-1] = ' '; - return FormatNoCommaNumber(buff, BASE_YEAR + ymd.year); + return FormatNoCommaNumber(buff, ymd.year); } static char *FormatMonthAndYear(char *buff, Date date) @@ -352,7 +352,7 @@ static char *FormatMonthAndYear(char *buff, Date date) for (src = GetStringPtr(STR_MONTH_JAN + ymd.month); (*buff++ = *src++) != '\0';) {} buff[-1] = ' '; - return FormatNoCommaNumber(buff, BASE_YEAR + ymd.year); + return FormatNoCommaNumber(buff, ymd.year); } static char *FormatTinyDate(char *buff, Date date) @@ -360,7 +360,7 @@ static char *FormatTinyDate(char *buff, Date date) YearMonthDay ymd; ConvertDateToYMD(date, &ymd); - buff += sprintf(buff, " %02i-%02i-%04i", ymd.day, ymd.month + 1, BASE_YEAR + ymd.year); + buff += sprintf(buff, " %02i-%02i-%04i", ymd.day, ymd.month + 1, ymd.year); return buff; } |