The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999+ on November 29, 2009, 12:56:50 pm

Title: [bug] Reading cityname.txt doesn't ignore empty line
Post by: z9999+ on November 29, 2009, 12:56:50 pm
The first line of citylist_ja.txt is "§". This will make a empty cityname.

Quote
§
東京
品川
横浜

But cityname.txt doesn't allow to use "#" as commented line, so we can't use "§#" as the first line.
The correct one should be "§東京".

Quote
§東京
品川
横浜

Is is possible to avoid this by changing code or you need to change citylist_ja.txt.
Title: Re: [bug] Reading cityname.txt doesn't ignore empty line
Post by: prissi on November 29, 2009, 10:16:33 pm
Empty lines and comments should be possible.
Title: Re: [bug] Reading cityname.txt doesn't ignore empty line
Post by: z9999+ on November 30, 2009, 06:32:09 am
Thank you for trying to fix the problem.
But unfortunately r2906 doesn't work well.

When I start a game, all cityname is empty in Japanese.
I'm using default citylist_ja.txt.

Solved the problem in r2908. Thank you.