summaryrefslogtreecommitdiff
path: root/src/network/core/tcp_game.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-15 23:44:45 +0000
committerrubidium <rubidium@openttd.org>2010-08-15 23:44:45 +0000
commit1c3d42598e1de68e109ee27dd289885aabe9878b (patch)
treeace3c990a6bb5df5dc8585af9caa895be3c4b4a1 /src/network/core/tcp_game.cpp
parent12b882227717811b047d4ae84d95444b167d7226 (diff)
downloadopenttd-1c3d42598e1de68e109ee27dd289885aabe9878b.tar.xz
(svn r20510) -Codechange: unify packet queue handling and make insertion O(1) instead of O(n)
Diffstat (limited to 'src/network/core/tcp_game.cpp')
-rw-r--r--src/network/core/tcp_game.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/network/core/tcp_game.cpp b/src/network/core/tcp_game.cpp
index 8044ef138..66a1b6f81 100644
--- a/src/network/core/tcp_game.cpp
+++ b/src/network/core/tcp_game.cpp
@@ -36,12 +36,6 @@ NetworkClientSocket::NetworkClientSocket(ClientID client_id)
NetworkClientSocket::~NetworkClientSocket()
{
- while (this->command_queue != NULL) {
- CommandPacket *p = this->command_queue->next;
- free(this->command_queue);
- this->command_queue = p;
- }
-
if (_redirect_console_to_client == this->client_id) _redirect_console_to_client = INVALID_CLIENT_ID;
this->client_id = INVALID_CLIENT_ID;
this->status = STATUS_INACTIVE;