]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed bug that allowed the quake2 stair jump to work
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 10 Mar 2006 05:18:39 +0000 (05:18 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 10 Mar 2006 05:18:39 +0000 (05:18 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6087 d7cf8633-e32d-0410-b094-e92efae38249

sv_phys.c

index 4e17bc92d5907a43bc7f4660aab542b3d8a98df9..f58108b40bc86f7f3fa0c4887cd4cbd827ab40c4 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -1124,6 +1124,9 @@ void SV_WalkMove (prvm_edict_t *ent)
 
        if (downtrace.fraction < 1 && downtrace.plane.normal[2] > 0.7)
        {
+               // this has been disabled so that you can't jump when you are stepping
+               // up while already jumping (also known as the Quake2 stair jump bug)
+#if 0
                // LordHavoc: disabled this check so you can walk on monsters/players
                //if (ent->fields.server->solid == SOLID_BSP)
                {
@@ -1131,6 +1134,7 @@ void SV_WalkMove (prvm_edict_t *ent)
                        ent->fields.server->flags =     (int)ent->fields.server->flags | FL_ONGROUND;
                        ent->fields.server->groundentity = PRVM_EDICT_TO_PROG(downtrace.ent);
                }
+#endif
        }
        else
        {