autovacate feature now works only on dedicated server. period.
This commit is contained in:
parent
e15e81b2db
commit
34bd4d1bbd
1 changed files with 1 additions and 2 deletions
|
|
@ -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...
|
g_hostEntity = ent; // save the edict of the listen server client...
|
||||||
|
|
||||||
extern ConVar yb_autovacate;
|
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 ();
|
bots.RemoveRandom ();
|
||||||
|
|
||||||
if (g_isMetamod)
|
if (g_isMetamod)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue