From 71fe184f82d7cbe63831897f865754dd667f41ca Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 27 Aug 2017 14:41:05 +0200 Subject: [PATCH] Don's set allowed_timeouts for bots --- qcsrc/server/client.qc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index db0e478201..a490886053 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1187,7 +1187,10 @@ void ClientConnect(entity this) PlayerStats_GameReport_AddEvent(sprintf("kills-%d", this.playerid)); // always track bots, don't ask for cl_allow_uidtracking - if (IS_BOT_CLIENT(this)) PlayerStats_GameReport_AddPlayer(this); + if (IS_BOT_CLIENT(this)) + PlayerStats_GameReport_AddPlayer(this); + else + CS(this).allowed_timeouts = autocvar_sv_timeout_number; if (autocvar_sv_eventlog) GameLogEcho(strcat(":join:", ftos(this.playerid), ":", ftos(etof(this)), ":", ((IS_REAL_CLIENT(this)) ? this.netaddress : "bot"), ":", playername(this, false))); @@ -1236,7 +1239,6 @@ void ClientConnect(entity this) } CS(this).jointime = time; - CS(this).allowed_timeouts = autocvar_sv_timeout_number; if (IS_REAL_CLIENT(this)) { -- 2.39.2