From a3e684e6d1d850991f7cbaec3005cd2030795241 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 30 Apr 2008 20:53:49 +0000 Subject: [PATCH] remove weird multiplication of water friction by 1 (wet feet), 2 (swimming), 3 (submerged), as sv_user.c (which Quake uses) does not do that and it DOES break prediction git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8268 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_input.c b/cl_input.c index c1430ec4..f6124794 100644 --- a/cl_input.c +++ b/cl_input.c @@ -935,7 +935,7 @@ void CL_ClientMovement_Physics_Swim(cl_clientmovement_state_t *s) if (s->waterjumptime <= 0) { // water friction - f = 1 - s->cmd.frametime * cl.movevars_waterfriction * s->waterlevel; + f = 1 - s->cmd.frametime * cl.movevars_waterfriction /* * s->waterlevel */; f = bound(0, f, 1); VectorScale(s->velocity, f, s->velocity); -- 2.39.2