The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: neroden on March 07, 2011, 03:12:22 AM

Title: Patch: display tiles/month equivalent for km/h
Post by: neroden on March 07, 2011, 03:12:22 AM
This applies only *after* the "time-3" patch in this topic: http://forum.simutrans.com/index.php?topic=6629.new#new

This displays the tiles/month equivalent for 100 km/h in the goods list window (underneath the speedbonus information).
I tried to do it in a "clean" manner, so there are some random cleanups in the code (using symbolic constants instead of raw numbers) as well.  This turned out to be easier than I expected.

I haven't sat down and timed a convoy yet (50 km/h convoy over long straight 50km/h road, perhaps).  Other than that it appears to work -- any computational errors should be fixable with the same structure.

EDIT: For James Petts, the adaptation of this to experimental is on the experimental-speed-trans branch on github.
Title: Re: Patch: display tiles/month equivalent for km/h
Post by: neroden on May 10, 2011, 02:22:08 AM
HEY!  SIMUTRANS DEVELOPERS!

Like with the "time-3" patch in the other thread, this has apparently been ignored for two months.  Could someone please take a look.
Title: Re: Patch: display tiles/month equivalent for km/h
Post by: neroden on May 10, 2011, 07:40:14 PM
Updated patch.
Title: Re: Patch: display tiles/month equivalent for km/h
Post by: prissi on May 15, 2011, 07:17:43 PM
Not me before June.
Title: Re: Patch: display tiles/month equivalent for km/h
Post by: neroden on May 16, 2011, 01:19:23 PM
Updated patch, applies against head plus "time-5" patch.

EDIT: updated to apply against head plus "time-6" patch, thanks to discovering that I lost bits of the patch in time-5 (time-6 seems good).