summaryrefslogtreecommitdiff
path: root/src/network/network_server.cpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-04-23 01:52:57 +0200
committerPatric Stout <github@truebrain.nl>2021-04-24 21:43:58 +0200
commitff708c2c659477da04fab108ca8e46a60c0d60b0 (patch)
tree0a60165ca72b8cc20664bf04032ae0e172f4a13b /src/network/network_server.cpp
parent526635942451479bee66e9eb61c50f91ae48a7dd (diff)
downloadopenttd-ff708c2c659477da04fab108ca8e46a60c0d60b0.tar.xz
Add: admin menu for companies in multiplayer games
You can now easily do: - a password reset (unlock) - remove an empty company (reset company)
Diffstat (limited to 'src/network/network_server.cpp')
-rw-r--r--src/network/network_server.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
index 746077abd..f6b3e1192 100644
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -287,8 +287,6 @@ NetworkRecvStatus ServerNetworkGameSocketHandler::CloseConnection(NetworkRecvSta
extern byte _network_clients_connected;
_network_clients_connected--;
- DeleteWindowById(WC_CLIENT_LIST_POPUP, this->client_id);
-
this->SendPackets(true);
delete this->GetInfo();
@@ -2064,7 +2062,6 @@ void NetworkServerDoMove(ClientID client_id, CompanyID company_id)
NetworkAction action = (company_id == COMPANY_SPECTATOR) ? NETWORK_ACTION_COMPANY_SPECTATOR : NETWORK_ACTION_COMPANY_JOIN;
NetworkServerSendChat(action, DESTTYPE_BROADCAST, 0, "", client_id, company_id + 1);
- InvalidateWindowClassesData(WC_CLIENT_LIST_POPUP);
InvalidateWindowData(WC_CLIENT_LIST, 0);
}