mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 17:39:09 +00:00
This commit is contained in:
@@ -1188,7 +1188,8 @@ NetworkRecvStatus ClientNetworkGameSocketHandler::Receive_SERVER_CONFIG_UPDATE(P
|
|||||||
|
|
||||||
_network_server_max_companies = p.Recv_uint8();
|
_network_server_max_companies = p.Recv_uint8();
|
||||||
_network_server_name = p.Recv_string(NETWORK_NAME_LENGTH);
|
_network_server_name = p.Recv_string(NETWORK_NAME_LENGTH);
|
||||||
SetWindowClassesDirty(WC_CLIENT_LIST);
|
|
||||||
|
InvalidateWindowData(WC_CLIENT_LIST, 0);
|
||||||
|
|
||||||
Debug(net, 9, "Client::Receive_SERVER_CONFIG_UPDATE(): max_companies={}", _network_server_max_companies);
|
Debug(net, 9, "Client::Receive_SERVER_CONFIG_UPDATE(): max_companies={}", _network_server_max_companies);
|
||||||
|
|
||||||
|
@@ -572,9 +572,10 @@ static void UpdateClientConfigValues()
|
|||||||
{
|
{
|
||||||
NetworkServerUpdateGameInfo();
|
NetworkServerUpdateGameInfo();
|
||||||
|
|
||||||
|
InvalidateWindowData(WC_CLIENT_LIST, 0);
|
||||||
|
|
||||||
if (_network_server) {
|
if (_network_server) {
|
||||||
NetworkServerSendConfigUpdate();
|
NetworkServerSendConfigUpdate();
|
||||||
SetWindowClassesDirty(WC_CLIENT_LIST);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user