The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: hreintke on August 15, 2021, 03:07:27 PM

Title: Relative time is shown in am/pm format
Post by: hreintke on August 15, 2021, 03:07:27 PM
Has been a while since I played Simutrans, First time I see the waiting time in days, hours, minutes.

The issue is :
There is always an am/pm shown in waiting time.
When there is a waiting time of more than 12 hours, the difference is shows as hours -12  "pm" instead.

I think in "char const *difftick_to_string( sint32 ticks, bool round_to_quaters )"
should return the same format, days, hours, minutes  independent of "env_t::show_month" setting.
Title: Re: Relative time is shown in am/pm format
Post by: prissi on August 16, 2021, 07:52:41 AM
I see. Indeed, this seems to require some different handling. Check r10013.
Title: Re: Relative time is shown in am/pm format
Post by: hreintke on August 16, 2021, 11:07:16 AM
There is a leftover  "{ "  on line 295 of simintr.cc.

Removing that makes it work OK
Title: Re: Relative time is shown in am/pm format
Post by: prissi on August 16, 2021, 11:23:54 AM
Sorry, commited before saving ...