From f8bccce555bccadafe0035a5d9820c2b33dc8174 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 13 Jun 2009 12:06:31 +0000 Subject: (svn r16573) -Fix: [Network] Always send the starting date from the game you're currently playing instead the starting date from the config file. --- src/network/network.cpp | 1 - src/network/network_udp.cpp | 2 +- 2 files changed, 1 insertion(+), 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); -- cgit v1.2.3-70-g09d2