From 782b80eff755afcf7d4b3c5f9237bc65457b4e16 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 22 Dec 2008 12:59:31 +0000 Subject: (svn r14709) -Codechange: make a clearer distinction between 'unique' client identification ids and the indices into the clients/client info arrays. --- src/network/core/tcp.cpp | 2 +- src/network/core/tcp.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/network/core') diff --git a/src/network/core/tcp.cpp b/src/network/core/tcp.cpp index 6450d4778..f6cef8728 100644 --- a/src/network/core/tcp.cpp +++ b/src/network/core/tcp.cpp @@ -22,7 +22,7 @@ void NetworkTCPSocketHandler::Initialize() { this->sock = INVALID_SOCKET; - this->index = 0; + this->client_id = INVALID_CLIENT_ID; this->last_frame = 0; this->last_frame_server = 0; this->lag_test = 0; diff --git a/src/network/core/tcp.h b/src/network/core/tcp.h index 6af0d17f8..1bafbf26e 100644 --- a/src/network/core/tcp.h +++ b/src/network/core/tcp.h @@ -91,7 +91,7 @@ private: Packet *packet_queue; ///< Packets that are awaiting delivery Packet *packet_recv; ///< Partially received packet public: - uint16 index; ///< Client index + ClientID client_id; ///< Client identifier uint32 last_frame; ///< Last frame we have executed uint32 last_frame_server; ///< Last frame the server has executed byte lag_test; ///< Byte used for lag-testing the client -- cgit v1.2.3-54-g00ecf