Skip to content

Commit 647e7fb

Browse files
committed
Only check for ambient color with ambientColor key
`_color` is used by q3map2 for some internal purposes, so don't use it here.
1 parent 02844d2 commit 647e7fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/renderer/tr_bsp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4366,7 +4366,7 @@ void R_LoadEntities( lump_t *l, std::string &externalEntities )
43664366
}
43674367

43684368
// check for ambient color
4369-
else if ( !Q_stricmp( keyname, "_color" ) || !Q_stricmp( keyname, "ambientColor" ) )
4369+
else if ( !Q_stricmp( keyname, "ambientColor" ) )
43704370
{
43714371
if ( r_forceAmbient.Get() == -1 ) {
43724372
sscanf( value, "%f %f %f", &tr.ambientLight[0], &tr.ambientLight[1],

0 commit comments

Comments
 (0)