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
Code: [Select]
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.