From 95ff9e7165523e73a4e7f4b09d159dcf52acb404 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 21 Jul 2024 05:01:16 +0300 Subject: [PATCH] engine: client: prevent empty lightstyle console flood --- engine/client/cl_tent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_tent.c b/engine/client/cl_tent.c index 86e95ad6..355a9aea 100644 --- a/engine/client/cl_tent.c +++ b/engine/client/cl_tent.c @@ -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" ); } /*