diff options
author | rubidium <rubidium@openttd.org> | 2009-06-13 12:06:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-06-13 12:06:31 +0000 |
commit | f8bccce555bccadafe0035a5d9820c2b33dc8174 (patch) | |
tree | fc33c79b8fd1209b7aa2081e9157da6412fb0cfd /src | |
parent | 2a7b07137aaba7f84f2c45322aed52bed1d0988e (diff) | |
download | openttd-f8bccce555bccadafe0035a5d9820c2b33dc8174.tar.xz |
(svn r16573) -Fix: [Network] Always send the starting date from the game you're currently playing instead the starting date from the config file.
Diffstat (limited to 'src')
-rw-r--r-- | src/network/network.cpp | 1 | ||||
-rw-r--r-- | src/network/network_udp.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp index 7646278ca..09ae9b7ae 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -749,7 +749,6 @@ static void NetworkInitGameInfo() /* The server is a client too */ _network_game_info.clients_on = _network_dedicated ? 0 : 1; - _network_game_info.start_date = ConvertYMDToDate(_settings_game.game_creation.starting_year, 0, 1); NetworkClientInfo *ci = new NetworkClientInfo(CLIENT_ID_SERVER); ci->client_playas = _network_dedicated ? COMPANY_SPECTATOR : _local_company; diff --git a/src/network/network_udp.cpp b/src/network/network_udp.cpp index 7eaf19397..4a954421c 100644 --- a/src/network/network_udp.cpp +++ b/src/network/network_udp.cpp @@ -90,7 +90,7 @@ DEF_UDP_RECEIVE_COMMAND(Server, PACKET_UDP_CLIENT_FIND_SERVER) /* Update some game_info */ ngi.clients_on = _network_game_info.clients_on; - ngi.start_date = _network_game_info.start_date; + ngi.start_date = ConvertYMDToDate(_settings_game.game_creation.starting_year, 0, 1); ngi.server_lang = _settings_client.network.server_lang; ngi.use_password = !StrEmpty(_settings_client.network.server_password); |