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=refs%2Fheads%2FMario%2Flocal_idlekick_fix;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))