From: terencehill Date: Sun, 27 Aug 2017 12:41:05 +0000 (+0200) Subject: Don's set allowed_timeouts for bots X-Git-Tag: xonotic-v0.8.5~2500 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=71fe184f82d7cbe63831897f865754dd667f41ca;p=xonotic%2Fxonotic-data.pk3dir.git Don's set allowed_timeouts for bots --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index db0e47820..a49088605 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)) {