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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user