From: divverent Date: Fri, 22 May 2009 14:35:19 +0000 (+0000) Subject: fix -rawlightmapsizelimit X-Git-Tag: svn-r421~47 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bd6c5c2da0093ed6fd0426ccc54f494cc17a58b7;p=xonotic%2Fnetradiant.git fix -rawlightmapsizelimit git-svn-id: svn://svn.icculus.org/netradiant/trunk@373 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/tools/quake3/q3map2/lightmaps_ydnar.c b/tools/quake3/q3map2/lightmaps_ydnar.c index 252188e9..59076366 100644 --- a/tools/quake3/q3map2/lightmaps_ydnar.c +++ b/tools/quake3/q3map2/lightmaps_ydnar.c @@ -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;