From: Garux Date: Wed, 25 Mar 2020 18:21:07 +0000 (+0300) Subject: q3map2 * fix: do not affect styled lightmaps by floodlight X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=acd4026b70958a6371bf09c8f1618f98db625234;p=xonotic%2Fnetradiant.git q3map2 * fix: do not affect styled lightmaps by floodlight port of https://github.com/id-tech-3-tools/map-compiler/pull/12 https://github.com/id-tech-3-tools/map-compiler/commit/87b8589a3a5069c482243bb33c587fc18911746c --- diff --git a/tools/quake3/q3map2/light_ydnar.c b/tools/quake3/q3map2/light_ydnar.c index b86ff4b2..ce9cf861 100644 --- a/tools/quake3/q3map2/light_ydnar.c +++ b/tools/quake3/q3map2/light_ydnar.c @@ -4434,6 +4434,9 @@ void FloodlightIlluminateLightmap( rawLightmap_t *lm ){ continue; } + if( lm->styles[lightmapNum] != LS_NORMAL && lm->styles[lightmapNum] != LS_NONE ) // isStyleLight + continue; + /* apply floodlight to each luxel */ for ( y = 0; y < lm->sh; y++ ) {