fix for grenades sinking into brush model floor in start.bsp
[xonotic/darkplaces.git] / sv_phys.c
index 724d45b..76b12e2 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