fix .srf file name, when map name contains period, e.g. asd.xxx.map

closes #102
This commit is contained in:
Garux 2022-07-11 23:33:01 +03:00
parent 87a3682c46
commit 22377bb255
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ void WriteSurfaceExtraFile( const char *path ){
Sys_Printf( "--- WriteSurfaceExtraFile ---\n" );
/* open the file */
auto srfPath = StringOutputStream( 256 )( PathExtensionless( path ), ".srf" );
const auto srfPath = StringOutputStream( 256 )( path, ".srf" );
Sys_Printf( "Writing %s\n", srfPath.c_str() );
FILE *sf = SafeOpenWrite( srfPath, "wt" );

View File

@ -342,7 +342,7 @@ void EndBSPFile( bool do_write ){
WriteSurfaceExtraFile( source );
/* write the bsp */
auto path = StringOutputStream( 256 )( source, ".bsp" );
const auto path = StringOutputStream( 256 )( source, ".bsp" );
Sys_Printf( "Writing %s\n", path.c_str() );
WriteBSPFile( path );
}