diff options
-rw-r--r-- | src/cgame/cg_buildable.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c index 86353f12..c34561d1 100644 --- a/src/cgame/cg_buildable.c +++ b/src/cgame/cg_buildable.c @@ -371,9 +371,7 @@ static void CG_RunBuildableLerpFrame( centity_t *cent ) buildable_t buildable = cent->currentState.modelindex; lerpFrame_t *lf = ¢->lerpFrame; animation_t *anim; - buildableAnimNumber_t newAnimation = cent->buildableAnim; - - newAnimation &= ~( ANIM_TOGGLEBIT|ANIM_FORCEBIT ); + buildableAnimNumber_t newAnimation = cent->buildableAnim & ~( ANIM_TOGGLEBIT|ANIM_FORCEBIT ); // debugging tool to get no animations if( cg_animSpeed.integer == 0 ) @@ -387,9 +385,6 @@ static void CG_RunBuildableLerpFrame( centity_t *cent ) { CG_SetBuildableLerpFrameAnimation( buildable, lf, newAnimation ); - CG_Printf( "new anim/sound: %d %d\n", !cg_buildables[ buildable ].sounds[ newAnimation ].looped, - cg_buildables[ buildable ].sounds[ newAnimation ].enabled ); - if( !cg_buildables[ buildable ].sounds[ newAnimation ].looped && cg_buildables[ buildable ].sounds[ newAnimation ].enabled ) trap_S_StartSound( cent->lerpOrigin, cent->currentState.number, CHAN_AUTO, |