From 3fddb760bf3bbc19f59953f1cb067b613f2534ef Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 5 Dec 2015 22:44:28 +0100 Subject: Get rid of an obnoxious particle system warning. --- src/cgame/cg_particles.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit