From acaf8cd3846091c89eeae2542ec79c231d1ffee9 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 5 Feb 2007 09:04:01 +0000 Subject: [PATCH] fixed double-jump bug in prediction when jumping up sides of crates or on stairs git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6793 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 a6f44761..60144ddf 100644 --- a/cl_input.c +++ b/cl_input.c @@ -773,7 +773,7 @@ void CL_ClientMovement_UpdateStatus(cl_clientmovement_state_t *s) VectorSet(origin1, s->origin[0], s->origin[1], s->origin[2] + 1); VectorSet(origin2, s->origin[0], s->origin[1], s->origin[2] - 2); trace = CL_TraceBox(origin1, s->mins, s->maxs, origin2, true, NULL, SUPERCONTENTS_SOLID | SUPERCONTENTS_BODY | SUPERCONTENTS_PLAYERCLIP, true); - s->onground = trace.fraction < 1 && trace.plane.normal[2] > 0.7; + s->onground = trace.fraction < 1 && trace.plane.normal[2] > 0.7 && s->velocity[2] < cl_gravity.value * s->q.frametime; // set watertype/waterlevel VectorSet(origin1, s->origin[0], s->origin[1], s->origin[2] + s->mins[2] + 1); -- 2.39.2