summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cgame/cg_particles.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cgame/cg_particles.c b/src/cgame/cg_particles.c
index b718600..f9836d4 100644
--- a/src/cgame/cg_particles.c
+++ b/src/cgame/cg_particles.c
@@ -449,7 +449,9 @@ particleSystem_t *CG_SpawnNewParticleSystem( qhandle_t psHandle )
if( !bps->registered )
{
- CG_Printf( S_COLOR_RED "ERROR: a particle system has not been registered yet\n" );
+ if( cg_debugParticles.integer >= 1)
+ CG_Printf( S_COLOR_RED "ERROR: a particle system has not been registered yet\n" );
+
return NULL;
}