mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-29 08:05:50 +03:00
SV_ConnectClient: Move function Steam_NotifyClientDisconnect
This commit is contained in:
parent
e7232be7e1
commit
c4cecf5f12
@ -2325,10 +2325,19 @@ void EXT_FUNC SV_ConnectClient_internal(void)
|
||||
|
||||
if (reconnect)
|
||||
{
|
||||
#ifndef REHLDS_FIXES
|
||||
Steam_NotifyClientDisconnect(client);
|
||||
#endif
|
||||
|
||||
if ((client->active || client->spawned) && client->edict)
|
||||
gEntityInterface.pfnClientDisconnect(client->edict);
|
||||
|
||||
#ifdef REHLDS_FIXES
|
||||
// FIXED: Call after pfnClientDisconnect
|
||||
// because 3rd-party may expects that useful data (eg steamid) hasn't reset yet
|
||||
Steam_NotifyClientDisconnect(client);
|
||||
#endif
|
||||
|
||||
Con_Printf("%s:reconnect\n", NET_AdrToString(adr));
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user