The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Frank on September 02, 2008, 08:12:21 pm

Title: 0.100.0, r1973, r1986 : maintenance_building
Post by: Frank on September 02, 2008, 08:12:21 pm
testet Windows XP Pro

create a simuconf.tab in [userdir]/simutrans

entries

Code: [Select]
# display (screen/window) width
# also see readme.txt, -screensize option
display_width  = 900

# display (screen/window) height
# also see readme.txt, -screensize option
display_height = 560

the maintenance from player building level 1 and 2 is 200 Cr
level 4 is 400 Cr
Title: Re: 0.100.0, r1973, r1986 : maintenance_building
Post by: prissi on September 02, 2008, 08:44:32 pm
no bits_per_day entry? This is the usual cause for this ...
Title: Re: 0.100.0, r1973, r1986 : maintenance_building
Post by: Frank on September 03, 2008, 01:14:47 pm
bits_per_day -> bits_per_month ?

bits_per_month varies for different paksets. A global value for all Paksets is impractical.
Title: Re: 0.100.0, r1973, r1986 : maintenance_building
Post by: z9999 on September 04, 2008, 05:22:53 am
This will solve the problem.

simmain.cc:285
Quote
   umgebung_t::maint_building = contents.get_int("maintenance_building", 5000);
=>
Quote
   umgebung_t::maint_building = contents.get_int("maintenance_building", umgebung_t::maint_building);

BTW, Default umgebung_t::maint_building is only 500. Is this the right value ?  ???

dataobj/umgebung.cc:66
Quote
sint32 umgebung_t::maint_building = 500;
Title: Re: 0.100.0, r1973, r1986 : maintenance_building
Post by: Frank on September 06, 2008, 06:25:17 pm
r2002

fix this problem

Thanks