Add client list overlay (toggleable)

This commit is contained in:
dP
2021-09-29 22:55:14 +03:00
parent c8ac56fda6
commit 2c5f48943c
13 changed files with 255 additions and 1 deletions

View File

@@ -39,7 +39,8 @@
#include <sstream>
#include <iomanip>
#include "citymania/cm_console_cmds.hpp"
#include "../citymania/cm_client_list_gui.hpp"
#include "../citymania/cm_console_cmds.hpp"
#include "../safeguards.h"
@@ -562,6 +563,7 @@ NetworkAddress ParseConnectionString(const std::string &connection_string, uint1
ServerNetworkGameSocketHandler *cs = new ServerNetworkGameSocketHandler(s);
cs->client_address = address; // Save the IP of the client
citymania::SetClientListDirty();
InvalidateWindowData(WC_CLIENT_LIST, 0);
}