summaryrefslogtreecommitdiff
path: root/src/network/network_server.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-23 23:56:56 +0000
committerrubidium <rubidium@openttd.org>2009-01-23 23:56:56 +0000
commitbf45d44c3cda7dac3803a357651a9e9d7bf78da7 (patch)
tree4891041b23d185cf14561a1feac26d342dce106c /src/network/network_server.cpp
parent0909d9f4c4e57af715aa9e150ff328123decb8b9 (diff)
downloadopenttd-bf45d44c3cda7dac3803a357651a9e9d7bf78da7.tar.xz
(svn r15247) -Change: show a lock near the password/join button in the company window whenever the company is password protected
Diffstat (limited to 'src/network/network_server.cpp')
-rw-r--r--src/network/network_server.cpp2
1 files changed, 2 insertions, 0 deletions
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) {