]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/light.c
Comment ColorToBytesNonZero and fix zero detection in light.c.
[xonotic/netradiant.git] / tools / quake3 / q3map2 / light.c
index b8ad379f158b9ab853d966d97f0fc3b44b18cfe4..709b2ab996bc87ad8eb516d7da8baed799d0e841 100644 (file)
@@ -1771,7 +1771,7 @@ void TraceGrid( int num ){
                        }
 
                /* vortex: apply gridscale and gridambientscale here */
-               if (gp->directed[0] || gp->directed[1] || gp->directed[2]) {
+               if (gp->directed[i][0] || gp->directed[i][1] || gp->directed[i][2]) {
                        /*
                         * HACK: if there's a non-zero directed component, this
                         * lightgrid cell is useful. However, ioq3 skips grid