]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/View.qc
Merge remote branch 'origin/fruitiex/fruitbalance' into fruitiex/fruitbalance
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / View.qc
index 88d1d9274fa7b57eeefe422d606c76eda88ad1b7..5e194821532b1cd76928ab3e6a462fbb6494e353 100644 (file)
@@ -710,7 +710,7 @@ void CSQC_UpdateView(float w, float h)
                        float maxvel, minvel, curvel;
                        minvel = 400;
                        maxvel = 1000;
-                       curvel = vlen(pmove_vel);
+                       curvel = vlen('1 0 0' * pmove_vel_x + '0 1 0' * pmove_vel_y);
 
                        f = bound(0, (curvel - minvel) / (maxvel - minvel), 1);
                        x = cos(f * 2 * M_PI);