mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
Automatically remove map collision .cm, .bcm files before running dmap
This commit is contained in:
parent
86b94dc8be
commit
9216f47572
1 changed files with 8 additions and 0 deletions
|
@ -409,6 +409,14 @@ void Dmap( const idCmdArgs& args )
|
|||
idStr generated = va( "generated/%s.bproc", dmapGlobals.mapFileBase );
|
||||
fileSystem->RemoveFile( generated.c_str() );
|
||||
|
||||
// delete any old generated binary cm files
|
||||
generated = va( "generated/%s.bcm", dmapGlobals.mapFileBase );
|
||||
fileSystem->RemoveFile( generated.c_str() );
|
||||
|
||||
// delete any old ASCII collision files
|
||||
idStr::snPrintf( path, sizeof( path ), "%s.cm", dmapGlobals.mapFileBase );
|
||||
fileSystem->RemoveFile( path );
|
||||
|
||||
//
|
||||
// start from scratch
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue