]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also bound the speed reduction
authorMario <mario@smbclan.net>
Thu, 1 Feb 2018 13:58:32 +0000 (23:58 +1000)
committerMario <mario@smbclan.net>
Thu, 1 Feb 2018 13:58:32 +0000 (23:58 +1000)
qcsrc/ecs/systems/sv_physics.qc

index ac939740b69c5febe24e48bbe2ab9783337ee11a..6677d1782fe0c17720c8ef7d4a6f45c092419ce9 100644 (file)
@@ -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);
                        }