Small fix

This commit is contained in:
Andrei Drexler 2002-05-01 18:56:02 +00:00
parent f775db3760
commit 2e8a4c301d

View file

@ -5,6 +5,9 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// //
// $Log$ // $Log$
// Revision 1.25 2002/05/01 18:56:02 makro
// Small fix
//
// Revision 1.24 2002/05/01 18:09:55 makro // Revision 1.24 2002/05/01 18:09:55 makro
// Disabled footsteps from animation.cfg files // Disabled footsteps from animation.cfg files
// //
@ -121,6 +124,8 @@ static qboolean CG_ParseAnimationFile( const char *filename, clientInfo_t *ci )
float fps; float fps;
int skip; int skip;
char text[20000]; char text[20000];
char var[MAX_TOKEN_CHARS];
fileHandle_t f; fileHandle_t f;
animation_t *animations; animation_t *animations;
@ -175,7 +180,8 @@ static qboolean CG_ParseAnimationFile( const char *filename, clientInfo_t *ci )
ci->footsteps = FOOTSTEP_ENERGY;*/ ci->footsteps = FOOTSTEP_ENERGY;*/
} else { } else {
//Makro - added developer 1 check //Makro - added developer 1 check
if (trap_Cvar_VariableValue("developer")) trap_Cvar_VariableStringBuffer( "developer", var, sizeof( var ) );
if ( atoi(var) )
CG_Printf( "Bad footsteps parm in %s: %s\n", filename, token ); CG_Printf( "Bad footsteps parm in %s: %s\n", filename, token );
} }
continue; continue;