]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
fix -rawlightmapsizelimit
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Fri, 22 May 2009 14:35:19 +0000 (14:35 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Fri, 22 May 2009 14:35:19 +0000 (14:35 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@373 61c419a2-8eb2-4b30-bcec-8cead039b335

tools/quake3/q3map2/lightmaps_ydnar.c

index 252188e915952b05012051a90bf35ecb5ca21e14..59076366b5f797d82446887fc91124afaa01faa2 100644 (file)
@@ -678,7 +678,7 @@ qboolean AddSurfaceToRawLightmap( int num, rawLightmap_t *lm )
                size[ i ] = (maxs[ i ] - mins[ i ]) / sampleSize + 1.0f;
                
                /* hack (god this sucks) */
-               if( size[ i ] > lm->customWidth || size[ i ] > lm->customHeight  || size[i] > lmLimitSize)
+               if( size[ i ] > lm->customWidth || size[ i ] > lm->customHeight  || (lmLimitSize && size[i] > lmLimitSize))
                {
                        i = -1;
                        sampleSize += 1.0f;