]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/surface.c
fix deluxemap when lit from the wrong side as good as possible (by ignoring the delux...
[xonotic/netradiant.git] / tools / quake3 / q3map2 / surface.c
index 5415ae105d8f89e65f935b386bb5bc3fd8780626..30b4be57223ed1644d818eff97c304e475a64eef 100644 (file)
@@ -640,7 +640,9 @@ void ClassifySurfaces( int numSurfs, mapDrawSurface_t *ds )
                                ds->sampleSize *= ds->lightmapScale;
                        if( ds->sampleSize <= 0 )
                                ds->sampleSize = 1;
-                       else if( ds->sampleSize > 16384 )       /* powers of 2 are preferred */
+                       if(ds->sampleSize < minSampleSize)
+                               ds->sampleSize = minSampleSize;
+                       if( ds->sampleSize > 16384 )    /* powers of 2 are preferred */
                                ds->sampleSize = 16384;
                }
        }