diff options
Diffstat (limited to 'src/cgame/cg_ents.c')
-rw-r--r-- | src/cgame/cg_ents.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c index 44779bf6..1ed6cb2e 100644 --- a/src/cgame/cg_ents.c +++ b/src/cgame/cg_ents.c @@ -889,10 +889,12 @@ CG_CEntityPVSEnter */ static void CG_CEntityPVSEnter( centity_t *cent ) { + entityState_t *es = ¢->currentState; + if( cg_debugPVS.integer ) CG_Printf( "Entity %d entered PVS\n", cent->currentState.number ); - switch( cent->currentState.eType ) + switch( es->eType ) { case ET_MISSILE: CG_LaunchMissile( cent ); @@ -910,7 +912,8 @@ static void CG_CEntityPVSEnter( centity_t *cent ) //make sure that the buildable animations are in a consistent state //when a buildable enters the PVS - cent->buildableAnim = BANIM_NONE; + cent->buildableAnim = cent->lerpFrame.animationNumber = BANIM_NONE; + cent->oldBuildableAnim = es->legsAnim; } |