]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Merge branch 'fix-fast' into 'master'
authorMario <zacjardine@y7mail.com>
Sun, 29 Apr 2018 13:46:46 +0000 (13:46 +0000)
committerMario <zacjardine@y7mail.com>
Sun, 29 Apr 2018 13:46:46 +0000 (13:46 +0000)
Fix a bug that prevent -fast to behave correctly

See merge request xonotic/netradiant!64

tools/quake3/q3map2/light_ydnar.c

index a6def14219b139e5263b7f93768bc1b7abc736e0..c75dac2e55f5705029df32059d2eec071a09031d 100644 (file)
@@ -3616,7 +3616,7 @@ void SetupEnvelopes( qboolean forGrid, qboolean fastFlag ){
                                else{
                                        light->flags &= ~LIGHT_FAST_TEMP;
                                }
-                               if ( fastpoint && ( light->flags != EMIT_AREA ) ) {
+                               if ( fastpoint && ( light->type != EMIT_AREA ) ) {
                                        light->flags |= LIGHT_FAST_TEMP;
                                }
                                if ( light->si && light->si->noFast ) {