Skip to content

Commit aaffe43

Browse files
committed
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
1 parent 9508c83 commit aaffe43

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rehlds/engine/sv_main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,6 +1657,9 @@ void EXT_FUNC SV_Spawn_f_internal(void)
16571657
}
16581658
else
16591659
{
1660+
#ifdef REHLDS_FIXES
1661+
host_client->m_bSentNewResponse = FALSE;
1662+
#endif
16601663
SV_New_f();
16611664
}
16621665
}
@@ -2488,6 +2491,7 @@ void EXT_FUNC SV_ConnectClient_internal(void)
24882491
host_client->fully_connected = FALSE;
24892492

24902493
#ifdef REHLDS_FIXES
2494+
host_client->m_bSentNewResponse = FALSE;
24912495
g_GameClients[host_client - g_psvs.clients]->SetSpawnedOnce(false);
24922496
#endif // REHLDS_FIXES
24932497

0 commit comments

Comments
 (0)