From 6a4172c5b0f3500334bb8cb294cc6d229a07fa8c Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 4 Aug 2009 19:41:01 +0000 Subject: [PATCH] onground check: don't trace down by 2 units but just by one; now clientside doublejump bug cannot happen below 300fps git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9088 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 c8665b31..803bd671 100644 --- a/cl_input.c +++ b/cl_input.c @@ -826,7 +826,7 @@ void CL_ClientMovement_UpdateStatus(cl_clientmovement_state_t *s) // set onground VectorSet(origin1, s->origin[0], s->origin[1], s->origin[2] + 1); - VectorSet(origin2, s->origin[0], s->origin[1], s->origin[2] - 2); + VectorSet(origin2, s->origin[0], s->origin[1], s->origin[2] - 1); // -2 causes clientside doublejump bug at above 150fps, raising that to 300fps :) trace = CL_Move(origin1, s->mins, s->maxs, origin2, MOVE_NORMAL, NULL, SUPERCONTENTS_SOLID | SUPERCONTENTS_BODY | SUPERCONTENTS_PLAYERCLIP, true, true, NULL, false); s->onground = trace.fraction < 1 && trace.plane.normal[2] > 0.7; -- 2.39.2