]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/ecs/systems/sv_physics.qc
set sv_maxidle_playertospectator 0 "move players idle for more than this amount of...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / ecs / systems / sv_physics.qc
index d0ce80c5bc588a625f7b41bedbfefd7891e382fa..1454d0049fe76b0d6211f0e98e7379b47bb20857 100644 (file)
@@ -26,7 +26,7 @@ void sys_phys_monitor(entity this, float dt)
 {
        int buttons = PHYS_INPUT_BUTTON_MASK(this);
        anticheat_physics(this);
-       if (autocvar_sv_maxidle > 0) {
+       if (autocvar_sv_maxidle > 0 || autocvar_sv_maxidle_playertospectator > 0) {
                if (buttons != CS(this).buttons_old
                    || CS(this).movement != CS(this).movement_old
                    || this.v_angle != CS(this).v_angle_old) { CS(this).parm_idlesince = time; }