_farplanedist now ignores C_SKY leafs
[xonotic/netradiant.git] / tools / quake3 / q3map2 / visflow.c
index c3bdfdda92dff86fb172cb11a0e563fda0502374..672b91a5aa53ad277f517546e97bec4d4384a3ce 100644 (file)
@@ -1583,6 +1583,7 @@ void BasePortalVis( int portalnum )
                */
                
                /* ydnar: this is known-to-be-working farplane code */
+               if( !p->sky && !tp->sky )
                if( farPlaneDist > 0.0f )
                {
                        VectorSubtract( p->origin, tp->origin, dir );