From: Mario Date: Thu, 9 Apr 2015 17:26:04 +0000 (+1000) Subject: Fix spectator speed (walking is still a bit off, but a different issue) X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6e478ed665965380964b0e532d239456fcff773c;p=xonotic%2Fxonotic-data.pk3dir.git Fix spectator speed (walking is still a bit off, but a different issue) --- diff --git a/qcsrc/common/physics.qc b/qcsrc/common/physics.qc index 0a8d5e0c7..55d373bc6 100644 --- a/qcsrc/common/physics.qc +++ b/qcsrc/common/physics.qc @@ -1450,7 +1450,7 @@ void PM_walk(float buttons_prev, float maxspd_mod) } // walking - makevectors(self.v_angle.y * '0 1 0'); + makevectors(PHYS_INPUT_ANGLES(self).y * '0 1 0'); vector wishvel = v_forward * self.movement.x + v_right * self.movement.y; // acceleration @@ -1760,7 +1760,7 @@ void PM_Main() #ifdef SVQC if (!IS_PLAYER(self)) { - maxspeed_mod *= autocvar_sv_spectator_speed_multiplier; + maxspeed_mod = autocvar_sv_spectator_speed_multiplier; if (!self.spectatorspeed) self.spectatorspeed = maxspeed_mod; if (self.impulse && self.impulse <= 19 || (self.impulse >= 200 && self.impulse <= 209) || (self.impulse >= 220 && self.impulse <= 229)) @@ -1778,7 +1778,7 @@ void PM_Main() } // otherwise just clear self.impulse = 0; } - maxspeed_mod *= self.spectatorspeed; + maxspeed_mod = self.spectatorspeed; } #endif