mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-28 15:45:46 +03:00
Merge pull request #411 from dreamstalker/fixes201703194
Leave FL_DORMANT in flags on disconnect if present (used by CS).
This commit is contained in:
commit
2fc756efd1
@ -520,8 +520,8 @@ void SV_DropClient_internal(client_t *cl, qboolean crash, const char *string)
|
||||
cl->proxy = FALSE;
|
||||
COM_ClearCustomizationList(&cl->customdata, FALSE);
|
||||
#ifdef REHLDS_FIXES
|
||||
// Reset flags
|
||||
cl->edict->v.flags = 0;
|
||||
// Reset flags, leave FL_DORMANT used by CS
|
||||
cl->edict->v.flags &= FL_DORMANT;
|
||||
// Since the edict doesn't get deleted, fix it so it doesn't interfere.
|
||||
cl->edict->v.takedamage = DAMAGE_NO; // don't attract autoaim
|
||||
cl->edict->v.solid = SOLID_NOT;
|
||||
|
Loading…
Reference in New Issue
Block a user