From d07463446350fa866429dbd9811e7e486862056a Mon Sep 17 00:00:00 2001 From: Garux Date: Fri, 1 Jan 2021 17:41:11 +0300 Subject: [PATCH] SetupGrid() after _ambient key read --- tools/quake3/q3map2/light.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/quake3/q3map2/light.c b/tools/quake3/q3map2/light.c index 3d9adb27..5ae91ab7 100644 --- a/tools/quake3/q3map2/light.c +++ b/tools/quake3/q3map2/light.c @@ -1861,10 +1861,6 @@ void LightWorld( bool fastAllocate ){ SmoothNormals(); } - /* determine the number of grid points */ - Sys_Printf( "--- SetupGrid ---\n" ); - SetupGrid(); - /* find the optional minimum lighting values */ GetVectorForKey( &entities[ 0 ], "_color", color ); if ( colorsRGB ) { @@ -1904,6 +1900,10 @@ void LightWorld( bool fastAllocate ){ maxLight = f > 255? 255 : f < 0? 0 : f; } + /* determine the number of grid points */ + Sys_Printf( "--- SetupGrid ---\n" ); + SetupGrid(); // uses ambientColor read above + /* create world lights */ Sys_FPrintf( SYS_VRB, "--- CreateLights ---\n" ); CreateEntityLights();