News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

branch 11.x double line?

Started by Milko, July 25, 2013, 06:32:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Milko

Hello James

Last 11.x branch

file: dataobj/einstellungen.cc, line 1898/1897, there are two lines (add in one of last commits):
unprotect_abondoned_player_months = contents.get_int("unprotect_abondoned_player_months", unprotect_abondoned_player_months );   
unprotect_abondoned_player_months = contents.get_int("unprotect_abandoned_player_months", unprotect_abondoned_player_months ); // Correcting spelling error.

Giuseppe

Dwachs

See the tiny difference:

unprotect_abondoned_player_months = contents.get_int("unprotect_abondoned_player_months", unprotect_abondoned_player_months );   
unprotect_abondoned_player_months = contents.get_int("unprotect_abandoned_player_months", unprotect_abondoned_player_months );

both spellings of the setting are read to keep backward compatibility. This is now also fixed in standard.

jamespetts

Thank you for pointing this out, but Dwachs is correct: it is intentional.

Dwachs - presumably the fix in Standard has a similar effect?

Dwachs

Quote from: jamespetts on July 25, 2013, 08:28:21 PM
Dwachs - presumably the fix in Standard has a similar effect?
Yes, implementation is similar, I only took the freedom to correct the variable name as well.