mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-12 07:58:05 +00:00
Clear client flags in ClientDisconnect, because engine doesn't clear them before calling ClientConnect, but only before ClientPutInServer, on next connection to this slot.
Same as 5caf49f063
This commit is contained in:
parent
5eeb649cec
commit
523ee2ad97
@ -126,6 +126,7 @@ void ClientDisconnect( edict_t *pEntity )
|
||||
pEntity->v.takedamage = DAMAGE_NO;// don't attract autoaim
|
||||
pEntity->v.solid = SOLID_NOT;// nonsolid
|
||||
pEntity->v.effects = 0;// clear any effects
|
||||
pEntity->v.flags = 0;// clear any flags
|
||||
UTIL_SetOrigin( &pEntity->v, pEntity->v.origin );
|
||||
|
||||
g_pGameRules->ClientDisconnected( pEntity );
|
||||
|
Loading…
Reference in New Issue
Block a user