Browse Source

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
fix-cwd-path
Andrey Akhmichin 2 years ago
parent
commit
523ee2ad97
No known key found for this signature in database
GPG Key ID: BE329F7886439BC8
  1. 1
      dlls/client.cpp

1
dlls/client.cpp

@ -126,6 +126,7 @@ void ClientDisconnect( edict_t *pEntity ) @@ -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…
Cancel
Save