From 0998b6a27a82b92779880d21fa3e3ea8161dc6dd Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 6 Aug 2002 16:01:46 +0000 Subject: [PATCH] fix for 'falling' in a corner bug, thanks to Elric for finding the fix for this. also removed a SOLID_BSP check that shouldn't be there anymore. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2211 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_phys.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sv_phys.c b/sv_phys.c index 46c5f5a0..94f2bdf0 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -943,13 +943,11 @@ void SV_WalkMove (edict_t *ent) // check for stuckness, possibly due to the limited precision of floats // in the clipping hulls - /* if (clip && fabs(oldorg[1] - ent->v.origin[1]) < 0.03125 && fabs(oldorg[0] - ent->v.origin[0]) < 0.03125) // stepping up didn't make any progress clip = SV_TryUnstick (ent, oldvel); - */ // extra friction based on view angle if (clip & 2 && sv_wallfriction.integer) @@ -961,7 +959,7 @@ void SV_WalkMove (edict_t *ent) if (downtrace.plane.normal[2] > 0.7) { - if (ent->v.solid == SOLID_BSP) + //if (ent->v.solid == SOLID_BSP) { ent->v.flags = (int)ent->v.flags | FL_ONGROUND; ent->v.groundentity = EDICT_TO_PROG(downtrace.ent); -- 2.39.2