(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 cd9c35b84e
commit 42fe0b65d2
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;