Fix #12856, e17c82e: Updating network settings does not invalidate data (#12858)

This commit is contained in:
Ivan Pravdin 2024-07-21 13:59:48 -07:00 committed by GitHub
parent 4ee45db51b
commit da00a62d59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -1188,7 +1188,8 @@ NetworkRecvStatus ClientNetworkGameSocketHandler::Receive_SERVER_CONFIG_UPDATE(P
_network_server_max_companies = p.Recv_uint8();
_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);

View File

@ -572,9 +572,10 @@ static void UpdateClientConfigValues()
{
NetworkServerUpdateGameInfo();
InvalidateWindowData(WC_CLIENT_LIST, 0);
if (_network_server) {
NetworkServerSendConfigUpdate();
SetWindowClassesDirty(WC_CLIENT_LIST);
}
}