From: Mario Date: Thu, 1 Feb 2018 13:58:32 +0000 (+1000) Subject: Also bound the speed reduction X-Git-Tag: xonotic-v0.8.5~2361 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=a74db1b632253f59396cc5a4c991d68e52f339b2 Also bound the speed reduction --- 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); }