summaryrefslogtreecommitdiff
path: root/src/cgame/cg_particles.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame/cg_particles.c')
-rw-r--r--src/cgame/cg_particles.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cgame/cg_particles.c b/src/cgame/cg_particles.c
index ce407549..9be34bd9 100644
--- a/src/cgame/cg_particles.c
+++ b/src/cgame/cg_particles.c
@@ -2101,6 +2101,12 @@ static void CG_EvaluateParticlePhysics( particle_t *p )
VectorMA( p->velocity, deltaTime, acceleration, p->velocity );
VectorMA( p->origin, deltaTime, p->velocity, newOrigin );
p->lastEvalTime = cg.time;
+
+ if( !cg_bounceParticles.integer )
+ {
+ VectorCopy( newOrigin, p->origin );
+ return;
+ }
CG_Trace( &trace, p->origin, mins, maxs, newOrigin,
CG_AttachmentCentNum( &ps->attachment ), CONTENTS_SOLID );