fix .srf file name, when map name contains period, e.g. asd.xxx.map
closes #102
This commit is contained in:
@@ -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" );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user