]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix for grenades sinking into brush model floor in start.bsp
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 6 Jul 2002 01:43:27 +0000 (01:43 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 6 Jul 2002 01:43:27 +0000 (01:43 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1990 d7cf8633-e32d-0410-b094-e92efae38249

sv_phys.c

index 724d45bdb66a307ef3d321ac8fca92ed0b5c4e91..76b12e25f27b8d8b176f4392bce15be6b24cd263 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -1194,7 +1194,10 @@ void SV_Physics_Toss (edict_t *ent)
                // and groundentity is now freed, set groundentity to 0 (floating)
                groundentity = PROG_TO_EDICT(ent->v.groundentity);
                if (groundentity->v.solid == SOLID_BSP)
+               {
                        ent->suspendedinairflag = true;
+                       return;
+               }
                else if (ent->suspendedinairflag && groundentity->free)
                {
                        // leave it suspended in the air