]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
changed Length() call to VectorLength() macro in two places
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 21 May 2002 10:22:32 +0000 (10:22 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 21 May 2002 10:22:32 +0000 (10:22 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1859 d7cf8633-e32d-0410-b094-e92efae38249

sv_user.c

index 174aed9f14bd4bd519d01cfa8ff7728b2b713627..2ed24ca1e67dedcf1a8a1989dc99c71c29840b96 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -274,7 +274,7 @@ void SV_WaterMove (void)
        else
                wishvel[2] += cmd.upmove;
 
-       wishspeed = Length(wishvel);
+       wishspeed = VectorLength(wishvel);
        if (wishspeed > sv_maxspeed.value)
        {
                temp = sv_maxspeed.value/wishspeed;
@@ -286,7 +286,7 @@ void SV_WaterMove (void)
 //
 // water friction
 //
-       speed = Length (velocity);
+       speed = VectorLength (velocity);
        if (speed)
        {
                newspeed = speed - sv.frametime * speed * sv_friction.value;