mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Fix statusbar date when time in minutes and show date with time are both on.
This commit is contained in:
parent
ec08a32c94
commit
f81b252386
@ -412,7 +412,7 @@ static char *FormatWallClockString(char *buff, DateTicks ticks, const char *last
|
||||
seprintf(hour, lastof(hour), "%02i", MINUTES_HOUR(minutes) );
|
||||
seprintf(minute, lastof(minute), "%02i", MINUTES_MINUTE(minutes));
|
||||
if (show_date) {
|
||||
int64 args[3] = { (int64)hour, (int64)minute, (int64)ticks / DAY_TICKS };
|
||||
int64 args[3] = { (int64)hour, (int64)minute, (int64)ticks / (DAY_TICKS * _settings_game.economy.day_length_factor) };
|
||||
if (_settings_client.gui.date_with_time == 1) {
|
||||
YearMonthDay ymd;
|
||||
ConvertDateToYMD(args[2], &ymd);
|
||||
|
Loading…
Reference in New Issue
Block a user