summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_client.cpp1
-rw-r--r--src/network/network_server.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp
index 28be67608..59a0b3922 100644
--- a/src/network/network_client.cpp
+++ b/src/network/network_client.cpp
@@ -872,6 +872,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_CONFIG_UPDATE)
DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_COMPANY_UPDATE)
{
_network_company_passworded = p->Recv_uint16();
+ InvalidateWindowClasses(WC_COMPANY);
return NETWORK_RECV_STATUS_OKAY;
}
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
index 647358ecf..f33714f0b 100644
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -28,6 +28,7 @@
#include "../company_func.h"
#include "../company_gui.h"
#include "../settings_type.h"
+#include "../window_func.h"
#include "table/strings.h"
@@ -1720,6 +1721,7 @@ void NetworkServerUpdateCompanyPassworded(CompanyID company_id, bool passworded)
if (NetworkCompanyIsPassworded(company_id) == passworded) return;
SB(_network_company_passworded, company_id, 1, !!passworded);
+ InvalidateWindowClasses(WC_COMPANY);
NetworkClientSocket *cs;
FOR_ALL_CLIENT_SOCKETS(cs) {