summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2001-09-07 15:40:50 +0000
committerTim Angus <tim@ngus.net>2001-09-07 15:40:50 +0000
commite75868b8ec9b526969e9ebb6805ef36d83479232 (patch)
treec5c066773a3aa9ad2a29f66a788e52d77479adf8 /src
parenta28bfd1462232f6bdda08f7f6f88d913edfea74b (diff)
Tidy ups
Diffstat (limited to 'src')
-rw-r--r--src/cgame/cg_buildable.c11
1 files changed, 5 insertions, 6 deletions
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 );
- }
}
/*