Clear any effects on disconnect.

This commit is contained in:
Night Owl 2017-07-20 10:51:34 +05:00
parent 14e75025bb
commit 7a5c29cbc9

View File

@ -125,6 +125,7 @@ void ClientDisconnect( edict_t *pEntity )
// since the edict doesn't get deleted, fix it so it doesn't interfere.
pEntity->v.takedamage = DAMAGE_NO;// don't attract autoaim
pEntity->v.solid = SOLID_NOT;// nonsolid
pEntity->v.effects = 0;// clear any effects
UTIL_SetOrigin( &pEntity->v, pEntity->v.origin );
g_pGameRules->ClientDisconnected( pEntity );