summaryrefslogtreecommitdiff
path: root/src/network/core
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-22 12:59:31 +0000
committerrubidium <rubidium@openttd.org>2008-12-22 12:59:31 +0000
commit6d23f48bb6b9f5e9ae9c7568a0acdf3c206dbabc (patch)
treebb6d8bbfd056eeed669e31e87f2c987bc038a42a /src/network/core
parent415d5abc54acd87a16f22201a84020734c728ee5 (diff)
downloadopenttd-6d23f48bb6b9f5e9ae9c7568a0acdf3c206dbabc.tar.xz
(svn r14709) -Codechange: make a clearer distinction between 'unique' client identification ids and the indices into the clients/client info arrays.
Diffstat (limited to 'src/network/core')
-rw-r--r--src/network/core/tcp.cpp2
-rw-r--r--src/network/core/tcp.h2
2 files changed, 2 insertions, 2 deletions
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