Skip to main content
Topic: [bug] Reading cityname.txt doesn't ignore empty line (Read 2058 times) previous topic - next topic

[bug] Reading cityname.txt doesn't ignore empty line

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.

Re: [bug] Reading cityname.txt doesn't ignore empty line

Reply #1
Empty lines and comments should be possible.

 

Re: [bug] Reading cityname.txt doesn't ignore empty line

Reply #2
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.