From b80d1ce4780a4e57bee2420e800d9bb62049ec56 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 23 Dec 2010 10:25:23 +0100 Subject: [PATCH] fix file extension --- tools/quake3/q3map2/convert_ase.c | 3 +-- tools/quake3/q3map2/convert_obj.c | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/quake3/q3map2/convert_ase.c b/tools/quake3/q3map2/convert_ase.c index dbb2fd4..a059795 100644 --- a/tools/quake3/q3map2/convert_ase.c +++ b/tools/quake3/q3map2/convert_ase.c @@ -337,7 +337,6 @@ int ConvertBSPToASE( char *bspName ) Sys_Printf( "writing %s\n", name ); ExtractFileBase( bspName, base ); - strcat( base, ".bsp" ); /* open it */ f = fopen( name, "wb" ); @@ -348,7 +347,7 @@ int ConvertBSPToASE( char *bspName ) fprintf( f, "*3DSMAX_ASCIIEXPORT\t200\r\n" ); fprintf( f, "*COMMENT\t\"Generated by Q3Map2 (ydnar) -convert -format ase\"\r\n" ); fprintf( f, "*SCENE\t{\r\n" ); - fprintf( f, "\t*SCENE_FILENAME\t\"%s\"\r\n", base ); + fprintf( f, "\t*SCENE_FILENAME\t\"%s.bsp\"\r\n", base ); fprintf( f, "\t*SCENE_FIRSTFRAME\t0\r\n" ); fprintf( f, "\t*SCENE_LASTFRAME\t100\r\n" ); fprintf( f, "\t*SCENE_FRAMESPEED\t30\r\n" ); diff --git a/tools/quake3/q3map2/convert_obj.c b/tools/quake3/q3map2/convert_obj.c index 25351ca..f680cf9 100644 --- a/tools/quake3/q3map2/convert_obj.c +++ b/tools/quake3/q3map2/convert_obj.c @@ -217,7 +217,6 @@ int ConvertBSPToOBJ( char *bspName ) Sys_Printf( "writing %s\n", mtlname ); ExtractFileBase( bspName, base ); - strcat( base, ".bsp" ); /* open it */ f = fopen( name, "wb" ); -- 2.39.2