summaryrefslogtreecommitdiff
path: root/src/cgame/cg_buildable.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2004-02-07 19:33:00 +0000
committerTim Angus <tim@ngus.net>2004-02-07 19:33:00 +0000
commit062269e2abb237a37d9a33a6de46974a599408b4 (patch)
tree134243f756ad60f2ca8dcf6c898411946ef1f9a3 /src/cgame/cg_buildable.c
parentb3b15cc492b10515706085ae5199713535c1624b (diff)
* Fixed a wall walking bug (DEAR GOD WHEN WILL IT END)
* Shadow is now rendered on walls as well as the ground * Buildables are now vulnerable in the prebuild stage * Alien buildables take longer to build * A bunch of other stuff
Diffstat (limited to 'src/cgame/cg_buildable.c')
-rw-r--r--src/cgame/cg_buildable.c4
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( &cent->buildablePS ) )