fix -rawlightmapsizelimit

git-svn-id: svn://svn.icculus.org/netradiant/trunk@373 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
divverent 2009-05-22 14:35:19 +00:00
parent 25b38e8a0e
commit bd6c5c2da0

View File

@ -678,7 +678,7 @@ qboolean AddSurfaceToRawLightmap( int num, rawLightmap_t *lm )
size[ i ] = (maxs[ i ] - mins[ i ]) / sampleSize + 1.0f; size[ i ] = (maxs[ i ] - mins[ i ]) / sampleSize + 1.0f;
/* hack (god this sucks) */ /* 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; i = -1;
sampleSize += 1.0f; sampleSize += 1.0f;