2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-29 08:05:50 +03:00

Leave FL_DORMANT in flags on disconnect if present (used by CS).

This commit is contained in:
Lev 2017-03-19 21:46:20 +05:00
parent 7e2dac19aa
commit 7c8dd5964d

View File

@ -520,8 +520,8 @@ void SV_DropClient_internal(client_t *cl, qboolean crash, const char *string)
cl->proxy = FALSE; cl->proxy = FALSE;
COM_ClearCustomizationList(&cl->customdata, FALSE); COM_ClearCustomizationList(&cl->customdata, FALSE);
#ifdef REHLDS_FIXES #ifdef REHLDS_FIXES
// Reset flags // Reset flags, leave FL_DORMANT used by CS
cl->edict->v.flags = 0; cl->edict->v.flags &= FL_DORMANT;
// 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.
cl->edict->v.takedamage = DAMAGE_NO; // don't attract autoaim cl->edict->v.takedamage = DAMAGE_NO; // don't attract autoaim
cl->edict->v.solid = SOLID_NOT; cl->edict->v.solid = SOLID_NOT;