]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/light.c
Merge branch 'uis/lightfix' into 'master'
[xonotic/netradiant.git] / tools / quake3 / q3map2 / light.c
index cff40a8590278320a707aaaad1bd40fbb0142764..26b2a347bfc9d335acd3a6dc50bfbdb495ca46c4 100644 (file)
@@ -1874,11 +1874,12 @@ void SetupGrid( void ){
        /* clear lightgrid */
        for ( i = 0; i < numRawGridPoints; i++ )
        {
-               VectorCopy( ambientColor, rawGridPoints[ i ].ambient[ j ] );
+               VectorCopy( ambientColor, rawGridPoints[ i ].ambient[ 0 ] );
                rawGridPoints[ i ].styles[ 0 ] = LS_NORMAL;
                bspGridPoints[ i ].styles[ 0 ] = LS_NORMAL;
                for ( j = 1; j < MAX_LIGHTMAPS; j++ )
                {
+                       VectorCopy( ambientColor, rawGridPoints[ i ].ambient[ j ] );
                        rawGridPoints[ i ].styles[ j ] = LS_NONE;
                        bspGridPoints[ i ].styles[ j ] = LS_NONE;
                }