2
0
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:
Lev 2017-03-19 22:35:57 +05:00 committed by GitHub
commit 2fc756efd1

View File

@ -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;