]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't do down traces if sitting on the floor of world (world never moves, so we can...
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 16 Mar 2002 14:46:57 +0000 (14:46 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 16 Mar 2002 14:46:57 +0000 (14:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1656 d7cf8633-e32d-0410-b094-e92efae38249

sv_phys.c

index b8297dd86091ce76bdbc3e690e99204d67d01a4b..09ec4653e5b7df58d5965028270fd3a8cfeb55e4 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -1249,6 +1249,8 @@ void SV_Physics_Toss (edict_t *ent)
                return;
 
 // if onground, return without moving
+       if (((int)ent->v.flags & FL_ONGROUND) && ent->v.groundentity == 0)
+               return;
        /*
        if ( ((int)ent->v.flags & FL_ONGROUND) )
        {
@@ -1352,6 +1354,8 @@ void SV_Physics_Step (edict_t *ent)
                else if ((flags & FL_SWIM) && SV_PointContents(ent->v.origin) != CONTENTS_EMPTY)
                        fall = false;
        }
+       if (fall && (flags & FL_ONGROUND) && ent->v.groundentity == 0)
+               fall = false;
 
        if (fall)
        {