diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2015-12-05 22:44:28 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2015-12-05 22:44:28 +0100 |
commit | 3fddb760bf3bbc19f59953f1cb067b613f2534ef (patch) | |
tree | b47936f7de68650f7c87e36d8f04a745d0993783 /src | |
parent | 21c41b7b5584e35edea66f66832a980363a95443 (diff) |
Get rid of an obnoxious particle system warning.
Diffstat (limited to 'src')
-rw-r--r-- | src/cgame/cg_particles.c | 4 |
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; } |