engine: mod_bmodel: fix misleading debug message telling about monochrome lighting when .lit file is used
This commit is contained in:
parent
a0b46da04b
commit
baa8fbaaec
1 changed files with 2 additions and 1 deletions
|
@ -3048,7 +3048,6 @@ static void Mod_LoadSurfaces( model_t *mod, dbspmodel_t *bmod )
|
||||||
if( samples == 1 || samples == 3 )
|
if( samples == 1 || samples == 3 )
|
||||||
{
|
{
|
||||||
bmod->lightmap_samples = (int)samples;
|
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
|
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 );
|
else Con_DPrintf( S_WARN "lighting invalid samplecount: %g, defaulting to %i\n", samples, bmod->lightmap_samples );
|
||||||
|
@ -3545,6 +3544,8 @@ static void Mod_LoadLighting( model_t *mod, dbspmodel_t *bmod )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Con_Reportf( "lighting: %s\n", FBitSet( mod->flags, MODEL_COLORED_LIGHTING ) ? "colored" : "monochrome" );
|
||||||
|
|
||||||
// not supposed to be load ?
|
// not supposed to be load ?
|
||||||
if( FBitSet( host.features, ENGINE_LOAD_DELUXEDATA ))
|
if( FBitSet( host.features, ENGINE_LOAD_DELUXEDATA ))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue