]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove the weird old hack that only increases bandwidth while moving (again)
authorTimePath <andrew.hardaker1995@gmail.com>
Mon, 8 Dec 2014 09:01:19 +0000 (20:01 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Mon, 8 Dec 2014 09:01:19 +0000 (20:01 +1100)
qcsrc/common/physics.qc

index 876cdab12e0ec6f7cba206a2dd09289004003c4d..2b4fa4ecf0f87a896719c1533ba5f344946cdd32 100644 (file)
@@ -1733,8 +1733,7 @@ void PM_Main(entity s)
        CSQC_ClientMovement_UpdateStatus(s);
 #endif
 #ifdef SVQC
-float maxspd_mod, spd, buttons;
-       string temps;
+       float maxspd_mod, buttons;
        float buttons_prev;
        float not_allowed_to_move;
 
@@ -1867,17 +1866,6 @@ float maxspd_mod, spd, buttons;
                maxspd_mod *= self.spectatorspeed;
        }
 
-       spd = max(self.stat_sv_maxspeed, autocvar_sv_maxairspeed) * maxspd_mod;
-       if(self.speed != spd)
-       {
-               self.speed = spd;
-               temps = ftos(spd);
-               stuffcmd(self, strcat("cl_forwardspeed ", temps, "\n"));
-               stuffcmd(self, strcat("cl_backspeed ", temps, "\n"));
-               stuffcmd(self, strcat("cl_sidespeed ", temps, "\n"));
-               stuffcmd(self, strcat("cl_upspeed ", temps, "\n"));
-       }
-
        // if dead, behave differently
        if (self.deadflag)
                goto end;