From dd2eb80cd2b36db6ab6539c3cb5687d60d186f0d Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 1 May 2008 07:47:10 +0000 Subject: [PATCH] re-add the multiplication by waterlevel for cls.protocol == PROTOCOL_QUAKEWORLD git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8269 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 f6124794..f5506ca0 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 * (cls.protocol == PROTOCOL_QUAKEWORLD ? s->waterlevel : 1); f = bound(0, f, 1); VectorScale(s->velocity, f, s->velocity); -- 2.39.2