diff options
author | darkvater <darkvater@openttd.org> | 2005-01-13 16:28:47 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2005-01-13 16:28:47 +0000 |
commit | 06cc62f40d84c91bba41510bbeab0ba8df7106b9 (patch) | |
tree | 3e1729e6f6d4e134ab87140f082b967a21b9cfd7 /misc.c | |
parent | 0074496ea45c30c387092b29c5a8d868daf62f57 (diff) | |
download | openttd-06cc62f40d84c91bba41510bbeab0ba8df7106b9.tar.xz |
(svn r1496) -Fix: highscore no longer crashes in network games with a dedicated server. At the end of the game (can only be set by the server) the highscore is shown for the top5 companies of that game
-Fix: fixed some compiler warnings
-Added PF_NETWORK_ONLY flag to settings. Such a setting can only be modified in a network game.
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -702,8 +702,8 @@ void IncreaseDate() NetworkServerYearlyLoop(); #endif /* ENABLE_NETWORK */ - /* check if we reached 2090, that's the maximum year. */ - if (_cur_year == 131) { // end of game on 31 dec 2050 + /* check if we reached end of the game (31 dec 2050) */ + if (_cur_year == _patches.ending_date - MAX_YEAR_BEGIN_REAL) { ShowEndGameChart(); /* check if we reached 2090 (MAX_YEAR_END_REAL), that's the maximum year. */ } else if (_cur_year == (MAX_YEAR_END + 1)) { |