From: Mario Date: Sun, 30 Aug 2015 15:03:58 +0000 (+1000) Subject: Don't kick bots for idling X-Git-Tag: xonotic-v0.8.2~1943 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2b0443836b8b4b11521908c4d4688db764cb3822;p=xonotic%2Fxonotic-data.pk3dir.git Don't kick bots for idling --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 3674755f2..4d7b9fa0b 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -2663,6 +2663,7 @@ Called every frame for each client after the physics are run void PlayerPostThink (void) { if(sv_maxidle > 0 && frametime) // WORKAROUND: only use dropclient in server frames (frametime set). Never use it in cl_movement frames (frametime zero). + if(IS_REAL_CLIENT(self)) if(IS_PLAYER(self) || sv_maxidle_spectatorsareidle) { if (time - self.parm_idlesince < 1) // instead of (time == self.parm_idlesince) to support sv_maxidle <= 10