]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
samplesize warning
authorrpolzer <rpolzer@61c419a2-8eb2-4b30-bcec-8cead039b335>
Tue, 23 Sep 2008 19:31:54 +0000 (19:31 +0000)
committerrpolzer <rpolzer@61c419a2-8eb2-4b30-bcec-8cead039b335>
Tue, 23 Sep 2008 19:31:54 +0000 (19:31 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@101 61c419a2-8eb2-4b30-bcec-8cead039b335

tools/quake3/q3map2/lightmaps_ydnar.c

index e067114793d4611483c50215a9da98d7e7a8c5c3..0ee45b1af0fb997ebab093da4ecde1f2a25fc2cc 100644 (file)
@@ -684,6 +684,19 @@ qboolean AddSurfaceToRawLightmap( int num, rawLightmap_t *lm )
                        sampleSize += 1.0f;
                }
        }
+
+       if(sampleSize != lm->sampleSize)
+       {
+               Sys_FPrintf(SYS_VRB,"WARNING: surface at (%6.0f %6.0f %6.0f) (%6.0f %6.0f %6.0f) too large for desired samplesize/lightmapsize combination, increased samplesize from %.1f to %.1f\n",
+                       info->mins[0],
+                       info->mins[1],
+                       info->mins[2],
+                       info->maxs[0],
+                       info->maxs[1],
+                       info->maxs[2],
+                       lm->sampleSize,
+                       sampleSize);
+       }
        
        /* set actual sample size */
        lm->actualSampleSize = sampleSize;