From b1e1c134200a18ec8178a933f7bf0442492f60f6 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 31 Mar 2008 07:11:18 +0000 Subject: [PATCH] (svn r12499) -Codechange: some coding style tweaks for network_internal.h. --- projects/openttd_vs80.vcproj | 14 ++++-- projects/openttd_vs90.vcproj | 14 ++++-- source.list | 8 ++-- src/network/network_internal.h | 88 ++++++++++++++++++---------------- 4 files changed, 75 insertions(+), 49 deletions(-) diff --git a/projects/openttd_vs80.vcproj b/projects/openttd_vs80.vcproj index 5743be414e..ff901243f4 100644 --- a/projects/openttd_vs80.vcproj +++ b/projects/openttd_vs80.vcproj @@ -932,7 +932,7 @@ > + + + + + + + + index) - char client_name[NETWORK_CLIENT_NAME_LENGTH]; // Name of the client - byte client_lang; // The language of the client - PlayerID client_playas; // As which player is this client playing (PlayerID) - uint32 client_ip; // IP-address of the client (so he can be banned) - Date join_date; // Gamedate the player has joined - char unique_id[NETWORK_UNIQUE_ID_LENGTH]; // Every play sends an unique id so we can indentify him + uint16 client_index; ///< Index of the client (same as ClientState->index) + char client_name[NETWORK_CLIENT_NAME_LENGTH]; ///< Name of the client + byte client_lang; ///< The language of the client + PlayerID client_playas; ///< As which player is this client playing (PlayerID) + uint32 client_ip; ///< IP-address of the client (so he can be banned) + Date join_date; ///< Gamedate the player has joined + char unique_id[NETWORK_UNIQUE_ID_LENGTH]; ///< Every play sends an unique id so we can indentify him }; enum NetworkJoinStatus { @@ -75,7 +83,7 @@ enum NetworkJoinStatus { NETWORK_JOIN_STATUS_GETTING_COMPANY_INFO, }; -/* Language ids for server_lang and client_lang. Do NOT modify the order. */ +/** Language ids for server_lang and client_lang. Do NOT modify the order. */ enum NetworkLanguage { NETLANG_ANY = 0, NETLANG_ENGLISH,