From 7c8dd5964df10913019034345d08ef4722decfbf Mon Sep 17 00:00:00 2001 From: Lev Date: Sun, 19 Mar 2017 21:46:20 +0500 Subject: [PATCH] Leave FL_DORMANT in flags on disconnect if present (used by CS). --- rehlds/engine/host.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rehlds/engine/host.cpp b/rehlds/engine/host.cpp index 12b2379..ebab4af 100644 --- a/rehlds/engine/host.cpp +++ b/rehlds/engine/host.cpp @@ -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;