diff options
Diffstat (limited to 'src/cgame/cg_players.c')
-rw-r--r-- | src/cgame/cg_players.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cgame/cg_players.c b/src/cgame/cg_players.c index dd62695a..5357b589 100644 --- a/src/cgame/cg_players.c +++ b/src/cgame/cg_players.c @@ -2066,6 +2066,16 @@ void CG_Player( centity_t *cent ) CG_AddPlayerWeapon( &torso, NULL, cent ); CG_PlayerUpgrades( cent, &torso ); + + //sanity check that particle systems are stopped when dead + if( es->eFlags & EF_DEAD ) + { + if( cent->muzzlePS != NULL ) + CG_DestroyParticleSystem( cent->muzzlePS ); + + if( cent->jetPackPS != NULL ) + CG_DestroyParticleSystem( cent->jetPackPS ); + } } /* |