mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
Fix #8050: never show the highscore when disabled, not even if you start in year zero
Using zero as "never" value can have its drawbacks ;)
This commit is contained in:
parent
d9ec8053d7
commit
a1987df96a
@ -200,11 +200,13 @@ static void OnNewYear()
|
|||||||
|
|
||||||
if (_cur_year == _settings_client.gui.semaphore_build_before) ResetSignalVariant();
|
if (_cur_year == _settings_client.gui.semaphore_build_before) ResetSignalVariant();
|
||||||
|
|
||||||
/* check if we reached end of the game (end of ending year) */
|
/* check if we reached end of the game (end of ending year); 0 = never */
|
||||||
if (_cur_year == _settings_game.game_creation.ending_year + 1) {
|
if (_cur_year == _settings_game.game_creation.ending_year + 1 && _settings_game.game_creation.ending_year != 0) {
|
||||||
ShowEndGameChart();
|
ShowEndGameChart();
|
||||||
|
}
|
||||||
|
|
||||||
/* check if we reached the maximum year, decrement dates by a year */
|
/* check if we reached the maximum year, decrement dates by a year */
|
||||||
} else if (_cur_year == MAX_YEAR + 1) {
|
if (_cur_year == MAX_YEAR + 1) {
|
||||||
int days_this_year;
|
int days_this_year;
|
||||||
|
|
||||||
_cur_year--;
|
_cur_year--;
|
||||||
|
Loading…
Reference in New Issue
Block a user