From: divverent Date: Tue, 4 Aug 2009 19:41:01 +0000 (+0000) Subject: onground check: don't trace down by 2 units but just by one; now clientside doublejum... X-Git-Tag: xonotic-v0.1.0preview~1541 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6a4172c5b0f3500334bb8cb294cc6d229a07fa8c;p=xonotic%2Fdarkplaces.git 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 --- 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;