From 16db8a8008cc97920727b93437ba53eeddfc9ac4 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Sun, 15 Oct 2023 00:25:17 +0500 Subject: [PATCH] utils: mdldec: qc.c: put tabs where possible. --- utils/mdldec/qc.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/utils/mdldec/qc.c b/utils/mdldec/qc.c index 6abc7f2e..c64f7222 100644 --- a/utils/mdldec/qc.c +++ b/utils/mdldec/qc.c @@ -262,7 +262,7 @@ static void WriteSkinFamilyInfo( FILE *fp ) for( i = 0; i < texture_hdr->numskinfamilies; ++i ) { - fputs( "{", fp ); + fputs( "\t{", fp ); for( j = 0; j < texture_hdr->numskinref; ++j ) { @@ -351,13 +351,13 @@ static void WriteBodyGroupInfo( FILE *fp ) if( !Q_strncmp( model->name, "blank", 5 ) ) { - fputs( "blank\n", fp ); + fputs( "\tblank\n", fp ); continue; } COM_FileBase( model->name, modelname, sizeof( modelname )); - fprintf( fp, "studio \"%s\"\n", modelname ); + fprintf( fp, "\tstudio \"%s\"\n", modelname ); } fputs( "}\n", fp ); @@ -527,23 +527,18 @@ static void WriteSequenceInfo( FILE *fp ) if( seqdesc->numevents > 2 ) { - fputs( "{\n ", fp ); + fputs( "{\n", fp ); for( j = 0; j < seqdesc->numevents; j++ ) { - if( seqdesc->numblends <= 2 ) - fputs( " ", fp ); - else - fputs( " ", fp ); - event = (mstudioevent_t *)( (byte *)model_hdr + seqdesc->eventindex ) + j; - fprintf( fp, "{ event %i %i", event->event, event->frame ); + fprintf( fp, "\t{ event %i %i", event->event, event->frame ); if( event->options[0] != '\0' ) fprintf( fp, " \"%s\"", event->options ); - fputs( " }\n ", fp ); + fputs( " }\n", fp ); } fputs( "}", fp );