fix file extension

This commit is contained in:
Rudolf Polzer 2010-12-23 10:25:23 +01:00
parent 4853a12dc8
commit b80d1ce478
2 changed files with 1 additions and 3 deletions

View File

@ -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" );

View File

@ -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" );