Browse Source

engine: client: don't spawn particles if time is stopped

pull/2/head
Alibek Omarov 11 months ago
parent
commit
9c929c1405
  1. 4
      engine/client/cl_efx.c

4
engine/client/cl_efx.c

@ -175,7 +175,7 @@ particle_t * GAME_EXPORT R_AllocParticle( void (*callback)( particle_t*, float ) @@ -175,7 +175,7 @@ particle_t * GAME_EXPORT R_AllocParticle( void (*callback)( particle_t*, float )
return NULL;
// never alloc particles when we not in game
// if( tr.frametime == 0.0 ) return NULL;
if( cl_clientframetime() == 0.0 ) return NULL;
if( !cl_free_particles )
{
@ -226,7 +226,7 @@ particle_t *R_AllocTracer( const vec3_t org, const vec3_t vel, float life ) @@ -226,7 +226,7 @@ particle_t *R_AllocTracer( const vec3_t org, const vec3_t vel, float life )
return NULL;
// never alloc particles when we not in game
//if( tr.frametime == 0.0 ) return NULL;
if( cl_clientframetime() == 0.0 ) return NULL;
if( !cl_free_particles )
{

Loading…
Cancel
Save