From: havoc Date: Sat, 6 Jul 2002 01:43:27 +0000 (+0000) Subject: fix for grenades sinking into brush model floor in start.bsp X-Git-Tag: RELEASE_0_2_0_RC1~455 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7d9dcc921443fbcade78e92fc40ef63394d6b29e;p=xonotic%2Fdarkplaces.git fix for grenades sinking into brush model floor in start.bsp git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1990 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_phys.c b/sv_phys.c index 724d45bd..76b12e25 100644 --- 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