Skip to content

Commit

Permalink
engine: mod_bmodel: fix misleading debug message telling about monoch…
Browse files Browse the repository at this point in the history
…rome lighting when .lit file is used
  • Loading branch information
a1batross committed Jan 9, 2025
1 parent a0b46da commit baa8fba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/common/mod_bmodel.c
Original file line number Diff line number Diff line change
Expand Up @@ -3048,7 +3048,6 @@ static void Mod_LoadSurfaces( model_t *mod, dbspmodel_t *bmod )
if( samples == 1 || samples == 3 )
{
bmod->lightmap_samples = (int)samples;
Con_Reportf( "lighting: %s\n", (bmod->lightmap_samples == 1) ? "monochrome" : "colored" );
bmod->lightmap_samples = Q_max( bmod->lightmap_samples, 1 ); // avoid division by zero
}
else Con_DPrintf( S_WARN "lighting invalid samplecount: %g, defaulting to %i\n", samples, bmod->lightmap_samples );
Expand Down Expand Up @@ -3545,6 +3544,8 @@ static void Mod_LoadLighting( model_t *mod, dbspmodel_t *bmod )
break;
}

Con_Reportf( "lighting: %s\n", FBitSet( mod->flags, MODEL_COLORED_LIGHTING ) ? "colored" : "monochrome" );

// not supposed to be load ?
if( FBitSet( host.features, ENGINE_LOAD_DELUXEDATA ))
{
Expand Down

0 comments on commit baa8fba

Please sign in to comment.