]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/client.qc
sv_maxidle_minplayers 2 "check for idlers only when there are at least this many...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qc
index 6dcad909c19912ea6756e349dcf356e70d480fe3..dadc04b5bae7cda9766655e88f721ec846bd684f 100644 (file)
@@ -2662,10 +2662,10 @@ void PlayerPostThink (entity this)
                        });
                }
 
-               if (totalClients <= 1)
+               if (totalClients < autocvar_sv_maxidle_minplayers)
                {
+                       // idle kick disabled
                        CS(this).parm_idlesince = time;
-                       /* do nothing */
                }
                else if (time - CS(this).parm_idlesince < 1) // instead of (time == this.parm_idlesince) to support sv_maxidle <= 10
                {