Browse Source

Clear any effects on disconnect.

halloween
Night Owl 7 years ago
parent
commit
7a5c29cbc9
  1. 1
      dlls/client.cpp

1
dlls/client.cpp

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

Loading…
Cancel
Save