mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-01-31 05:00:34 +00:00
small fixes
This commit is contained in:
parent
8f74ff048e
commit
5b1ceb8941
1 changed files with 3 additions and 3 deletions
|
@ -932,7 +932,7 @@ namespace CodeImp.DoomBuilder
|
||||||
if((purpose != SavePurpose.IntoFile) && (newfilepathname != filepathname))
|
if((purpose != SavePurpose.IntoFile) && (newfilepathname != filepathname))
|
||||||
{
|
{
|
||||||
// Kill target file
|
// Kill target file
|
||||||
if(fileexists) File.Delete(newfilepathname);
|
if(File.Exists(newfilepathname)) File.Delete(newfilepathname);
|
||||||
|
|
||||||
// Kill .dbs settings file
|
// Kill .dbs settings file
|
||||||
settingsfile = newfilepathname.Substring(0, newfilepathname.Length - 4) + ".dbs";
|
settingsfile = newfilepathname.Substring(0, newfilepathname.Length - 4) + ".dbs";
|
||||||
|
@ -947,7 +947,7 @@ namespace CodeImp.DoomBuilder
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the target file exists, we need to rebuild it
|
// If the target file exists, we need to rebuild it
|
||||||
if(fileexists)
|
if(File.Exists(newfilepathname))
|
||||||
{
|
{
|
||||||
// Move the target file aside
|
// Move the target file aside
|
||||||
origwadfile = newfilepathname + ".temp";
|
origwadfile = newfilepathname + ".temp";
|
||||||
|
@ -992,7 +992,7 @@ namespace CodeImp.DoomBuilder
|
||||||
if(!string.IsNullOrEmpty(origwadfile) && File.Exists(origwadfile))
|
if(!string.IsNullOrEmpty(origwadfile) && File.Exists(origwadfile))
|
||||||
{
|
{
|
||||||
//mxd. Clean-up
|
//mxd. Clean-up
|
||||||
if(fileexists)
|
if(File.Exists(newfilepathname))
|
||||||
{
|
{
|
||||||
//mxd. We MAY've just deleted the map from the target file. Let's pretend this never happened
|
//mxd. We MAY've just deleted the map from the target file. Let's pretend this never happened
|
||||||
if(targetwad != null) targetwad.Dispose();
|
if(targetwad != null) targetwad.Dispose();
|
||||||
|
|
Loading…
Reference in a new issue