changeset 14485:360154cdeb26 draft

(svn r19054) -Fix [FS#3598]: when banning yourself via rcon do not send the 'command response' to the client as the connection has already been terminated
author rubidium <rubidium@openttd.org>
date Sun, 07 Feb 2010 18:28:09 +0000
parents 24501a41ea9a
children 9faccf9e7894
files src/network/core/tcp_game.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/network/core/tcp_game.cpp
+++ b/src/network/core/tcp_game.cpp
@@ -42,6 +42,7 @@
 		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;
 }