summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_buildable.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c
index d1732f38..4b7f4a2d 100644
--- a/src/cgame/cg_buildable.c
+++ b/src/cgame/cg_buildable.c
@@ -53,14 +53,14 @@ static void CG_Creep( centity_t *cent )
float length;
trace_t tr, tr2;
vec3_t temp, origin, p1, p2;
- int creepSize = BG_FindCreepSizeForBuildable( cent->currentState.clientNum );
+ int scaleUpTime = BG_FindBuildTimeForBuildable( cent->currentState.modelindex );
//should the creep be growing or receding?
if( cent->miscTime >= 0 )
{
msec = cg.time - cent->miscTime;
- if( msec >= 0 && msec < CREEP_SCALEUP_TIME )
- frac = (float)msec / CREEP_SCALEUP_TIME;
+ if( msec >= 0 && msec < scaleUpTime )
+ frac = (float)msec / scaleUpTime;
else
frac = 1.0f;
}
@@ -834,9 +834,12 @@ void CG_Buildable( centity_t *cent )
if( team == BIT_ALIENS )
{
CG_Creep( cent );
-
- //run animations
- CG_BuildableAnimation( cent, &ent.oldframe, &ent.frame, &ent.backlerp );
+
+ if( es->generic1 & B_SPAWNED_TOGGLEBIT )
+ {
+ //run animations
+ CG_BuildableAnimation( cent, &ent.oldframe, &ent.frame, &ent.backlerp );
+ }
}
else if( team == BIT_HUMANS )
{