Merge branch 'master' into divVerent/farplanedist-sky-fix
[xonotic/netradiant.git] / tools / quake3 / q3map2 / visflow.c
index 6c48e2da867dea8cdd62bc7ea74adf7eeeb5bbfe..5a7ffd92de65c6ed8cc77889b3a22e07e76aa666 100644 (file)
@@ -1615,7 +1615,7 @@ void BasePortalVis( int portalnum ){
                 */
 
                /* ydnar: this is known-to-be-working farplane code */
-               if ( farPlaneDist > 0.0f ) {
+               if ( !p->sky && !tp->sky && farPlaneDist > 0.0f ) {
                        VectorSubtract( p->origin, tp->origin, dir );
                        if ( VectorLength( dir ) - p->radius - tp->radius > farPlaneDist ) {
                                continue;