diff options
author | rubidium <rubidium@openttd.org> | 2008-05-29 20:21:28 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-29 20:21:28 +0000 |
commit | c33164831de864b1552147c1fb2599f3b7c17191 (patch) | |
tree | 734284d7c9344a063b89c7e239647be25ca07424 /src/network/network_client.cpp | |
parent | 61507ffeabb4439f0d818e07fde2808d076fd4f6 (diff) | |
download | openttd-c33164831de864b1552147c1fb2599f3b7c17191.tar.xz |
(svn r13334) -Codechange: move the network settings variables from network/network_internal to settings.
Diffstat (limited to 'src/network/network_client.cpp')
-rw-r--r-- | src/network/network_client.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp index 517a191e3..9411a28a4 100644 --- a/src/network/network_client.cpp +++ b/src/network/network_client.cpp @@ -84,7 +84,7 @@ void HashCurrentCompanyPassword() if (StrEmpty(_network_player_info[_local_player].password)) return; _password_game_seed = _settings_game.game_creation.generation_seed; - ttd_strlcpy(_password_server_unique_id, _network_unique_id, sizeof(_password_server_unique_id)); + ttd_strlcpy(_password_server_unique_id, _settings_client.network.network_id, sizeof(_password_server_unique_id)); const char *new_pw = GenerateCompanyPasswordHash(_network_player_info[_local_player].password); ttd_strlcpy(_network_player_info[_local_player].password, new_pw, sizeof(_network_player_info[_local_player].password)); @@ -131,10 +131,10 @@ DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_JOIN) p = NetworkSend_Init(PACKET_CLIENT_JOIN); p->Send_string(_openttd_revision); - p->Send_string(_network_player_name); // Player name + p->Send_string(_settings_client.network.player_name); // Player name p->Send_uint8 (_network_playas); // PlayAs p->Send_uint8 (NETLANG_ANY); // Language - p->Send_string(_network_unique_id); + p->Send_string(_settings_client.network.network_id); MY_CLIENT->Send_Packet(p); } |