]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/fog.c
Added -exportents to q3map2.
[xonotic/netradiant.git] / tools / quake3 / q3map2 / fog.c
index 1b23bad263a4e3be01b3a8e298051b2f6264f7ea..900e0cb8eb568b01819829942731cf2d2c85c2bc 100644 (file)
@@ -411,7 +411,7 @@ qboolean ChopFaceSurfaceByBrush( entity_t *e, mapDrawSurface_t *ds, brush_t *b )
                }
 
                /* general case */
-               ClipWindingEpsilon( w, plane->normal, plane->dist, ON_EPSILON, &front, &back );
+               ClipWindingEpsilonStrict( w, plane->normal, plane->dist, ON_EPSILON, &front, &back ); /* strict; if plane is "almost identical" to face, both ways to continue can be wrong, so we better not fog it */
                FreeWinding( w );
 
                if ( back == NULL ) {
@@ -787,7 +787,7 @@ void CreateMapFogs( void ){
 
                /* set up fog */
                fog = &mapFogs[ numMapFogs++ ];
-               fog->si = ShaderInfoForShader( globalFog );
+               fog->si = ShaderInfoForShaderNull( globalFog );
                if ( fog->si == NULL ) {
                        Error( "Invalid shader \"%s\" referenced trying to add global fog", globalFog );
                }