--- tr_bsp.bak 2005-10-20 12:37:29.000000000 +0200 +++ tr_bsp.c 2005-10-20 15:53:27.000000000 +0200 @@ -155,6 +155,9 @@ //FIXME: HACK: maps with only one lightmap turn up fullbright for some reason. //this avoids this, but isn't the correct solution. tr.numLightmaps++; + } else if ( tr.numLightmaps > MAX_LIGHTMAPS ) { // 20051020 misantropia + ri.Printf( PRINT_WARNING, "too many lightmaps (%d)\n", tr.numLightmaps ); + tr.numLightmaps = MAX_LIGHTMAPS; } // if we are in r_vertexLight mode, we don't need the lightmaps at all