engine: client: prevent empty lightstyle console flood

This commit is contained in:
Alibek Omarov 2024-07-21 05:01:16 +03:00
parent 2fddbdddee
commit 95ff9e7165

View file

@ -2448,7 +2448,8 @@ void CL_SetLightstyle( int style, const char *s, float f )
}
}
Con_Reportf( "Lightstyle %i (%s), interp %s\n", style, ls->pattern, ls->interp ? "Yes" : "No" );
if( ls->length >= 1 )
Con_Reportf( "Lightstyle %i (%s), interp %s\n", style, ls->pattern, ls->interp ? "Yes" : "No" );
}
/*