Merge pull request #652 from illwieckz/styledflood

q3map2: do not affect styled lightmaps by floodlight, fix #616
This commit is contained in:
Timothee "TTimo" Besset 2020-07-04 14:12:47 -07:00 committed by GitHub
commit abeb2f1022
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4109,6 +4109,9 @@ float FloodLightForSample( trace_t *trace ){
/* set endpoint */
VectorMA( trace->origin, dd, direction, trace->end );
if( lm->styles[lightmapNum] != LS_NORMAL && lm->styles[lightmapNum] != LS_NONE ) // isStyleLight
continue;
//VectorMA( trace->origin, 1, direction, trace->origin );
SetupTrace( trace );