The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999 on April 09, 2009, 06:15:41 PM

Title: [solved]r2413- Wrong tunnel maintenance cost (again)
Post by: z9999 on April 09, 2009, 06:15:41 PM
r2413
The case of figure, tunnel maintenance cost is wrong.
Title: Re: r2413- Wrong tunnel maintenance cost (again)
Post by: gerw on April 10, 2009, 03:58:54 PM
I will have a look for it.
Title: Re: r2413- Wrong tunnel maintenance cost (again)
Post by: prissi on April 10, 2009, 08:14:01 PM
This should be fixed in nightly too now.
Title: Re: r2413- Wrong tunnel maintenance cost (again)
Post by: gerw on April 14, 2009, 06:24:23 AM
The
if(sp!=NULL) {
you've added in r2414 isn't necessary, since it's already checked in add_maintenance.
Title: Re: r2413- Wrong tunnel maintenance cost (again)
Post by: z9999 on April 14, 2009, 08:20:47 AM
And problem is not solved yet.
Title: Re: r2413- Wrong tunnel maintenance cost (again)
Post by: gerw on April 14, 2009, 08:37:00 AM
Vorzeichenfehler ;) (wrong sign)

Patch attached.
Title: Re: [solved]r2413- Wrong tunnel maintenance cost (again)
Post by: z9999 on April 15, 2009, 08:10:05 AM
Solved in r2421. Thank you.