diff options
author | rubidium <rubidium@openttd.org> | 2006-08-15 15:18:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-08-15 15:18:03 +0000 |
commit | 0d3ccad29fb035fced3a1a87b7804fde8c4e94b1 (patch) | |
tree | 40cc27f619e175b8c9a80e13e6651c33b92144aa /network_server.c | |
parent | 8aa76f306db00b81f14b53a736b6e30099258841 (diff) | |
download | openttd-0d3ccad29fb035fced3a1a87b7804fde8c4e94b1.tar.xz |
(svn r5916) -Cleanup: use MIN_YEAR/MAX_YEAR for the year boundaries and BASE_YEAR when comparing _cur_year with a 'full' year.
-Cleanup: replace some magic '1920' values with BASE_YEAR.
Diffstat (limited to 'network_server.c')
-rw-r--r-- | network_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/network_server.c b/network_server.c index c607b379a..3a3eca367 100644 --- a/network_server.c +++ b/network_server.c @@ -1313,8 +1313,8 @@ extern void SwitchMode(int new_mode); /* Check if we want to restart the map */ static void NetworkCheckRestartMap(void) { - if (_network_restart_game_year != 0 && _cur_year + MAX_YEAR_BEGIN_REAL >= _network_restart_game_year) { - DEBUG(net, 0)("Auto-restarting map. Year %d reached.", _cur_year + MAX_YEAR_BEGIN_REAL); + if (_network_restart_game_year != 0 && BASE_YEAR + _cur_year >= _network_restart_game_year) { + DEBUG(net, 0)("Auto-restarting map. Year %d reached.", BASE_YEAR + _cur_year); _random_seeds[0][0] = Random(); _random_seeds[0][1] = InteractiveRandom(); |