From: Mario Date: Sat, 29 May 2021 20:36:34 +0000 (+1000) Subject: Prevent idle kicking from functioning in local matches where it may kick the host X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=999e7e4cbdca1e717b18b5d25e8dd2b2ff093eaa;p=xonotic%2Fxonotic-data.pk3dir.git Prevent idle kicking from functioning in local matches where it may kick the host --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 7d3c1faca..35c27767c 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -2697,6 +2697,7 @@ void PlayerPostThink (entity this) { Player_Physics(this); + if (server_is_dedicated) // don't kick the local player in hosted matches! if (autocvar_sv_maxidle > 0 || (IS_PLAYER(this) && autocvar_sv_maxidle_playertospectator > 0)) if (frametime) // WORKAROUND: only use dropclient in server frames (frametime set). Never use it in cl_movement frames (frametime zero). if (IS_REAL_CLIENT(this))