From e75868b8ec9b526969e9ebb6805ef36d83479232 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 7 Sep 2001 15:40:50 +0000 Subject: Tidy ups --- src/cgame/cg_buildable.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c index b1103bb6..9e2a6d07 100644 --- a/src/cgame/cg_buildable.c +++ b/src/cgame/cg_buildable.c @@ -43,7 +43,7 @@ static qboolean CG_ParseBuildableAnimationFile( const char *filename, buildable_ char *token; float fps; int skip; - char text[20000]; + char text[ 20000 ]; fileHandle_t f; animation_t *animations; @@ -149,15 +149,15 @@ CG_SetBuildableLerpFrameAnimation may include ANIM_TOGGLEBIT =============== */ -static void CG_SetBuildableLerpFrameAnimation( buildable_t buildable, lerpFrame_t *lf, int newAnimation ) { +static void CG_SetBuildableLerpFrameAnimation( buildable_t buildable, lerpFrame_t *lf, int newAnimation ) +{ animation_t *anim; lf->animationNumber = newAnimation; newAnimation &= ~ANIM_TOGGLEBIT; - if ( newAnimation < 0 || newAnimation >= MAX_BUILDABLE_ANIMATIONS ) { + if( newAnimation < 0 || newAnimation >= MAX_BUILDABLE_ANIMATIONS ) CG_Error( "Bad animation number: %i", newAnimation ); - } anim = &buildAnimations[ buildable ][ newAnimation ]; @@ -168,9 +168,8 @@ static void CG_SetBuildableLerpFrameAnimation( buildable_t buildable, lerpFrame_ lf->animation = anim; lf->animationTime = lf->frameTime + anim->initialLerp; - if ( cg_debugAnim.integer ) { + if( cg_debugAnim.integer ) CG_Printf( "Anim: %i\n", newAnimation ); - } } /* -- cgit