summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2005-09-06 23:50:13 +0000
committerTim Angus <tim@ngus.net>2005-09-06 23:50:13 +0000
commitf6f2b1ed00355557eda1fc32f657382cd118de1e (patch)
tree69f5555db3ff3c0fc286e375fe568d8333120aeb /src/cgame
parent10e2a999d91998717d6f09c7e8c81d2fc865da84 (diff)
* cg_debugParticles >= 1 now prints to the console when particle systems are parsed and registered
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_particles.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/cgame/cg_particles.c b/src/cgame/cg_particles.c
index 4b302b01..9f9ef167 100644
--- a/src/cgame/cg_particles.c
+++ b/src/cgame/cg_particles.c
@@ -518,6 +518,9 @@ qhandle_t CG_RegisterParticleSystem( char *name )
}
}
+ if( cg_debugParticles.integer >= 1 )
+ CG_Printf( "Registered particle system %s\n", name );
+
bps->registered = qtrue;
//avoid returning 0
@@ -1231,7 +1234,7 @@ CG_ParseParticleSystem
Parse a particle system section
===============
*/
-static qboolean CG_ParseParticleSystem( baseParticleSystem_t *bps, char **text_p )
+static qboolean CG_ParseParticleSystem( baseParticleSystem_t *bps, char **text_p, const char *name )
{
char *token;
baseParticleEjector_t *bpe;
@@ -1287,7 +1290,12 @@ static qboolean CG_ParseParticleSystem( baseParticleSystem_t *bps, char **text_p
else if( !Q_stricmp( token, "ejector" ) ) //acceptable text
continue;
else if( !Q_stricmp( token, "}" ) )
+ {
+ if( cg_debugParticles.integer >= 1 )
+ CG_Printf( "Parsed particle system %s\n", name );
+
return qtrue; //reached the end of this particle system
+ }
else
{
CG_Printf( S_COLOR_RED "ERROR: unknown token '%s' in particle system %s\n", token, bps->name );
@@ -1361,7 +1369,7 @@ static qboolean CG_ParseParticleFile( const char *fileName )
Q_strncpyz( baseParticleSystems[ numBaseParticleSystems ].name, psName, MAX_QPATH );
- if( !CG_ParseParticleSystem( &baseParticleSystems[ numBaseParticleSystems ], &text_p ) )
+ if( !CG_ParseParticleSystem( &baseParticleSystems[ numBaseParticleSystems ], &text_p, psName ) )
{
CG_Printf( S_COLOR_RED "ERROR: %s: failed to parse particle system %s\n", fileName, psName );
return qfalse;