mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-01 01:25:38 +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)
|
if (reconnect)
|
||||||
{
|
{
|
||||||
|
#ifndef REHLDS_FIXES
|
||||||
Steam_NotifyClientDisconnect(client);
|
Steam_NotifyClientDisconnect(client);
|
||||||
|
#endif
|
||||||
|
|
||||||
if ((client->active || client->spawned) && client->edict)
|
if ((client->active || client->spawned) && client->edict)
|
||||||
gEntityInterface.pfnClientDisconnect(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));
|
Con_Printf("%s:reconnect\n", NET_AdrToString(adr));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user