Skip to content

Commit 05e4367

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 daa7703 commit 05e4367

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
@@ -4356,7 +4356,7 @@ void R_LoadEntities( lump_t *l, std::string &externalEntities )
43564356
}
43574357

43584358
// check for ambient color
4359-
else if ( !Q_stricmp( keyname, "_color" ) || !Q_stricmp( keyname, "ambientColor" ) )
4359+
else if ( !Q_stricmp( keyname, "ambientColor" ) )
43604360
{
43614361
if ( r_forceAmbient.Get() == -1 ) {
43624362
sscanf( value, "%f %f %f", &tr.ambientLight[0], &tr.ambientLight[1],

0 commit comments

Comments
 (0)