forked from mirror/OpenTTD
(svn r17737) -Codechange: remove the chat window when you were chatting with someone who lost his/her connection or when you were team chatting and moved out of the company.
This commit is contained in:
@@ -94,6 +94,15 @@ static ClientID _network_client_id = CLIENT_ID_FIRST;
|
||||
/* Some externs / forwards */
|
||||
extern void StateGameLoop();
|
||||
|
||||
/**
|
||||
* Basically a client is leaving us right now.
|
||||
*/
|
||||
NetworkClientInfo::~NetworkClientInfo()
|
||||
{
|
||||
/* Delete the chat window, if you were chatting with this client. */
|
||||
InvalidateWindowData(WC_SEND_NETWORK_MSG, DESTTYPE_CLIENT, this->client_id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the CI given it's raw index
|
||||
* @param index the index to search for
|
||||
|
Reference in New Issue
Block a user