From b447ea9c18a0c3664c137c8fc382c030e34ac43a Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 6 May 2024 01:59:14 +0300 Subject: [PATCH] engine: client: remove unused fields in client_static_t --- engine/client/cl_parse.c | 6 +++++- engine/client/client.h | 6 +----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index d6d131d8..1c0e5a51 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -1877,8 +1877,12 @@ void CL_ParseHLTV( sizebuf_t *msg ) break; case HLTV_LISTEN: cls.signon = SIGNONS; +#if 1 + MSG_ReadString( msg ); +#else NET_StringToAdr( MSG_ReadString( msg ), &cls.hltv_listen_address ); -// NET_JoinGroup( cls.netchan.sock, cls.hltv_listen_address ); + NET_JoinGroup( cls.netchan.sock, cls.hltv_listen_address ); +#endif SCR_EndLoadingPlaque(); break; default: diff --git a/engine/client/client.h b/engine/client/client.h index f9774594..27035103 100644 --- a/engine/client/client.h +++ b/engine/client/client.h @@ -539,12 +539,8 @@ typedef struct poolhandle_t mempool; // client premamnent pool: edicts etc - netadr_t hltv_listen_address; - int signon; // 0 to SIGNONS, for the signon sequence. - int quakePort; // a 16 bit value that allows quake servers - // to work around address translating routers - // g-cont. this port allow many copies of engine in multiplayer game + // connection information char servername[MAX_QPATH]; // name of server from original connect double connect_time; // for connection retransmits