]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix spectator speed (walking is still a bit off, but a different issue)
authorMario <zacjardine@y7mail.com>
Thu, 9 Apr 2015 17:26:04 +0000 (03:26 +1000)
committerMario <zacjardine@y7mail.com>
Thu, 9 Apr 2015 17:26:04 +0000 (03:26 +1000)
qcsrc/common/physics.qc

index 0a8d5e0c7b530f3491169316255c01aeaceea45b..55d373bc6fd678d3cccc5b16507ca4dab3a64178 100644 (file)
@@ -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