]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
onground check: don't trace down by 2 units but just by one; now clientside doublejum...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 4 Aug 2009 19:41:01 +0000 (19:41 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 4 Aug 2009 19:41:01 +0000 (19:41 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9088 d7cf8633-e32d-0410-b094-e92efae38249

cl_input.c

index c8665b31433ab84a26f6fdff47578b4d1c28eab0..803bd6711243f73610066b672ce63dd8c00c5c33 100644 (file)
@@ -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;