The International Simutrans Forum

 

Author Topic: Patch: display tiles/month equivalent for km/h  (Read 2132 times)

0 Members and 1 Guest are viewing this topic.

Offline neroden

  • Devotees (Inactive)
  • *
  • Posts: 831
  • Nathanael Nerode
Patch: display tiles/month equivalent for km/h
« 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.
« Last Edit: March 07, 2011, 06:07:30 AM by neroden »

Offline neroden

  • Devotees (Inactive)
  • *
  • Posts: 831
  • Nathanael Nerode
Re: Patch: display tiles/month equivalent for km/h
« Reply #1 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.

Offline neroden

  • Devotees (Inactive)
  • *
  • Posts: 831
  • Nathanael Nerode
Re: Patch: display tiles/month equivalent for km/h
« Reply #2 on: May 10, 2011, 07:40:14 PM »
Updated patch.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10829
  • Languages: De,EN,JP
Re: Patch: display tiles/month equivalent for km/h
« Reply #3 on: May 15, 2011, 07:17:43 PM »
Not me before June.

Offline neroden

  • Devotees (Inactive)
  • *
  • Posts: 831
  • Nathanael Nerode
Re: Patch: display tiles/month equivalent for km/h
« Reply #4 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).
« Last Edit: May 16, 2011, 10:51:31 PM by neroden »