From aaffe43e3e7a99f267b29ed84d7405a989242052 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Thu, 24 Jun 2021 19:09:10 +0700 Subject: [PATCH] Reset m_bSentNewResponse to allow new connection when the client goes through the full stage of connection (cl:connect -> sv:S2C_CONNECTION -> cl:new -> SV_New_f) Related 3a9bfb9 --- rehlds/engine/sv_main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rehlds/engine/sv_main.cpp b/rehlds/engine/sv_main.cpp index 7c2f6272a..74a285fea 100644 --- a/rehlds/engine/sv_main.cpp +++ b/rehlds/engine/sv_main.cpp @@ -1657,6 +1657,9 @@ void EXT_FUNC SV_Spawn_f_internal(void) } else { +#ifdef REHLDS_FIXES + host_client->m_bSentNewResponse = FALSE; +#endif SV_New_f(); } } @@ -2488,6 +2491,7 @@ void EXT_FUNC SV_ConnectClient_internal(void) host_client->fully_connected = FALSE; #ifdef REHLDS_FIXES + host_client->m_bSentNewResponse = FALSE; g_GameClients[host_client - g_psvs.clients]->SetSpawnedOnce(false); #endif // REHLDS_FIXES