From a74db1b632253f59396cc5a4c991d68e52f339b2 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 1 Feb 2018 23:58:32 +1000 Subject: [PATCH] Also bound the speed reduction --- qcsrc/ecs/systems/sv_physics.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/ecs/systems/sv_physics.qc b/qcsrc/ecs/systems/sv_physics.qc index ac939740b..6677d1782 100644 --- a/qcsrc/ecs/systems/sv_physics.qc +++ b/qcsrc/ecs/systems/sv_physics.qc @@ -73,7 +73,7 @@ void sys_phys_spectator_control(entity this) || CS(this).impulse == 19 || (CS(this).impulse >= 220 && CS(this).impulse <= 229) ) { - this.spectatorspeed = bound(1, this.spectatorspeed - 0.5, 5); + this.spectatorspeed = bound(autocvar_sv_spectator_speed_multiplier_min, this.spectatorspeed - 0.5, autocvar_sv_spectator_speed_multiplier_max); } else if (CS(this).impulse >= 1 && CS(this).impulse <= 9) { this.spectatorspeed = 1 + 0.5 * (CS(this).impulse - 1); } -- 2.39.2