diff options
Diffstat (limited to 'src/cgame/cg_buildable.c')
-rw-r--r-- | src/cgame/cg_buildable.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c index 29b89ec4..0cf39a86 100644 --- a/src/cgame/cg_buildable.c +++ b/src/cgame/cg_buildable.c @@ -201,7 +201,6 @@ void CG_HumanBuildableExplosion( vec3_t origin, vec3_t dir ) } -#define CREEP_SCALEDOWN_TIME 3000 #define CREEP_SIZE 64.0f /* @@ -793,6 +792,9 @@ static void CG_BuildableParticleEffects( centity_t *cent ) int health = es->generic1 & ~( B_POWERED_TOGGLEBIT | B_DCCED_TOGGLEBIT | B_SPAWNED_TOGGLEBIT ); float healthFrac = (float)health / B_HEALTH_SCALE; + if( !( es->generic1 & B_SPAWNED_TOGGLEBIT ) ) + return; + if( team == BIT_HUMANS ) { if( healthFrac < 0.33f && !CG_IsParticleSystemValid( ¢->buildablePS ) ) |