initialize rawGridPoints.ambient correctly

This commit is contained in:
Garux 2021-01-01 17:40:06 +03:00
parent f401facb4f
commit 97f0e61ccc

View File

@ -1825,7 +1825,9 @@ void SetupGrid( void ){
/* clear lightgrid */ /* clear lightgrid */
for ( i = 0; i < numRawGridPoints; i++ ) for ( i = 0; i < numRawGridPoints; i++ )
{ {
for ( j = 0; j < MAX_LIGHTMAPS; j++ )
VectorCopy( ambientColor, rawGridPoints[ i ].ambient[ j ] ); VectorCopy( ambientColor, rawGridPoints[ i ].ambient[ j ] );
rawGridPoints[ i ].styles[ 0 ] = LS_NORMAL; rawGridPoints[ i ].styles[ 0 ] = LS_NORMAL;
bspGridPoints[ i ].styles[ 0 ] = LS_NORMAL; bspGridPoints[ i ].styles[ 0 ] = LS_NORMAL;
for ( j = 1; j < MAX_LIGHTMAPS; j++ ) for ( j = 1; j < MAX_LIGHTMAPS; j++ )