From: Rudolf Polzer Date: Thu, 23 Dec 2010 09:25:23 +0000 (+0100) Subject: fix file extension X-Git-Tag: xonotic-v0.5.0~95 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b80d1ce4780a4e57bee2420e800d9bb62049ec56;p=xonotic%2Fnetradiant.git fix file extension --- diff --git a/tools/quake3/q3map2/convert_ase.c b/tools/quake3/q3map2/convert_ase.c index dbb2fd48..a0597957 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 25351cad..f680cf97 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" );