SetupEnvelopes( qfalse, fastbounce );
if ( numLights == 0 ) {
Sys_Printf( "No diffuse light to calculate, ending radiosity.\n" );
- break;
+ return;
}
/* add to lightgrid */
bounce--;
b++;
}
+ /* ydnar: store off lightmaps */
+ StoreSurfaceLightmaps( fastAllocate );
}
/* light the world */
LightWorld( BSPFilePath, fastAllocate );
- /* ydnar: store off lightmaps */
- StoreSurfaceLightmaps( fastAllocate );
-
/* write out the bsp */
UnparseEntities();
Sys_Printf( "Writing %s\n", BSPFilePath );