fixed sv_waterfriction code so it is now used
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 May 2006 23:27:24 +0000 (23:27 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 May 2006 23:27:24 +0000 (23:27 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6388 d7cf8633-e32d-0410-b094-e92efae38249

sv_user.c

index 0cc8d24..95bf42b 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -273,7 +273,7 @@ void SV_WaterMove (void)
        speed = VectorLength(host_client->edict->fields.server->velocity);
        if (speed)
        {
-               newspeed = speed - sv.frametime * speed * sv_friction.value;
+               newspeed = speed - sv.frametime * speed * sv_waterfriction.value;
                if (newspeed < 0)
                        newspeed = 0;
                temp = newspeed/speed;