mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
Rename Length to VectorLength.
This commit is contained in:
parent
b99a72e876
commit
c91f1a2aea
14 changed files with 192 additions and 244 deletions
|
@ -268,7 +268,7 @@ SV_WaterMove (void)
|
|||
else
|
||||
wishvel[2] += cmd.upmove;
|
||||
|
||||
wishspeed = Length (wishvel);
|
||||
wishspeed = VectorLength (wishvel);
|
||||
if (wishspeed > sv_maxspeed->value) {
|
||||
VectorScale (wishvel, sv_maxspeed->value / wishspeed, wishvel);
|
||||
wishspeed = sv_maxspeed->value;
|
||||
|
@ -276,7 +276,7 @@ SV_WaterMove (void)
|
|||
wishspeed *= 0.7;
|
||||
|
||||
// water friction
|
||||
speed = Length (velocity);
|
||||
speed = VectorLength (velocity);
|
||||
if (speed) {
|
||||
newspeed = speed - host_frametime * speed * sv_friction->value;
|
||||
if (newspeed < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue