Skip to content

Commit

Permalink
Reset m_bSentNewResponse to allow new connection when the client goes…
Browse files Browse the repository at this point in the history
… through the full stage of connection (cl:connect -> sv:S2C_CONNECTION -> cl:new -> SV_New_f) Related 3a9bfb9
  • Loading branch information
s1lentq committed Jun 24, 2021
1 parent 9508c83 commit aaffe43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rehlds/engine/sv_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit aaffe43

Please sign in to comment.