mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-29 08:05:50 +03:00
Reset edict flags on client disconnect.
This commit is contained in:
parent
f63bd849fa
commit
95a7df6ba5
@ -519,6 +519,13 @@ void SV_DropClient_internal(client_t *cl, qboolean crash, const char *string)
|
|||||||
cl->connection_started = realtime;
|
cl->connection_started = realtime;
|
||||||
cl->proxy = FALSE;
|
cl->proxy = FALSE;
|
||||||
COM_ClearCustomizationList(&cl->customdata, FALSE);
|
COM_ClearCustomizationList(&cl->customdata, FALSE);
|
||||||
|
#ifdef REHLDS_FIXES
|
||||||
|
// Reset flags
|
||||||
|
cl->edict->v.flags = 0;
|
||||||
|
// 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;
|
||||||
|
#endif // REHLDS_FIXES
|
||||||
cl->edict = NULL;
|
cl->edict = NULL;
|
||||||
Q_memset(cl->userinfo, 0, sizeof(cl->userinfo));
|
Q_memset(cl->userinfo, 0, sizeof(cl->userinfo));
|
||||||
Q_memset(cl->physinfo, 0, sizeof(cl->physinfo));
|
Q_memset(cl->physinfo, 0, sizeof(cl->physinfo));
|
||||||
|
Loading…
Reference in New Issue
Block a user