]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.c
now supports upto 256x256 texel lightmaps (rather than 17x17), as_tundra.bsp works now
[xonotic/darkplaces.git] / model_brush.c
index a9860d916fecbd121554614124afcd34af5eeef4..86d565a24653ac3bf030e3d89b90124f02d9f762 100644 (file)
@@ -696,7 +696,8 @@ void CalcSurfaceExtents (msurface_t *s)
 
                s->texturemins[i] = bmins[i] * 16;
                s->extents[i] = (bmaxs[i] - bmins[i]) * 16;
-               if ( !(tex->flags & TEX_SPECIAL) && s->extents[i] > 512 /* 256 */ )
+//             if ( !(tex->flags & TEX_SPECIAL) && s->extents[i] > 512)
+               if ((tex->flags & TEX_SPECIAL) == 0 && (s->extents[i]+1) > (256*16))
                        Host_Error ("Bad surface extents");
        }
 }