autovacate feature now works only on dedicated server. period.

This commit is contained in:
jeefo 2015-12-27 17:16:33 +03:00
commit 34bd4d1bbd

View file

@ -1076,9 +1076,8 @@ int ClientConnect (edict_t *ent, const char *name, const char *addr, char reject
g_hostEntity = ent; // save the edict of the listen server client...
extern ConVar yb_autovacate;
extern ConVar yb_quota;
if (yb_autovacate.GetBool () && !IsValidBot (ent) && ent != g_hostEntity)
if (IsDedicatedServer () && yb_autovacate.GetBool () && !IsValidBot (ent) && ent != g_hostEntity)
bots.RemoveRandom ();
if (g_isMetamod)