1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 12:39:11 +00:00

(svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company.

This commit is contained in:
rubidium
2009-02-04 16:59:41 +00:00
parent b6e6be58da
commit ac7757324e
24 changed files with 64 additions and 43 deletions

View File

@@ -846,10 +846,6 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_MOVE)
if (client_id == _network_own_client_id) {
_network_playas = company_id;
SetLocalCompany(company_id);
/* Disable any buttons in any windows the client is now not supposed to get to, and do it fast. */
/* Do this ASAP else the client has a chance of sending DoCommands with an incorrect company_id (=kick)! */
MarkWholeScreenDirty();
}
return NETWORK_RECV_STATUS_OKAY;