Skip to content

Commit

Permalink
Only check for ambient color with ambientColor key
Browse files Browse the repository at this point in the history
`_color` is used by q3map2 for some internal purposes, so don't use it here.
  • Loading branch information
VReaperV committed Jan 29, 2025
1 parent 02844d2 commit 647e7fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/renderer/tr_bsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4366,7 +4366,7 @@ void R_LoadEntities( lump_t *l, std::string &externalEntities )
}

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

0 comments on commit 647e7fb

Please sign in to comment.