qbsp: fix name of .por file in output
Was showing up as blah.prt.por because we had messed with the filename to remove the prt file previously. Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
7e9b2dd43a
commit
9f2691e3b6
|
|
@ -494,10 +494,6 @@ FillOutside(node_t *node, const int hullnum, const int numportals)
|
||||||
Message(msgLiteral, "Leak file written to %s.pts\n", options.szBSPName);
|
Message(msgLiteral, "Leak file written to %s.pts\n", options.szBSPName);
|
||||||
fclose(LeakFile);
|
fclose(LeakFile);
|
||||||
|
|
||||||
// Get rid of .prt file if .pts file is generated
|
|
||||||
strcat(options.szBSPName, ".prt");
|
|
||||||
remove(options.szBSPName);
|
|
||||||
|
|
||||||
if (options.fBspleak) {
|
if (options.fBspleak) {
|
||||||
Message(msgLiteral, "BSP portal file written to %s.por\n",
|
Message(msgLiteral, "BSP portal file written to %s.por\n",
|
||||||
options.szBSPName);
|
options.szBSPName);
|
||||||
|
|
@ -507,6 +503,10 @@ FillOutside(node_t *node, const int hullnum, const int numportals)
|
||||||
}
|
}
|
||||||
map.leakfile = true;
|
map.leakfile = true;
|
||||||
|
|
||||||
|
// Get rid of .prt file if .pts file is generated
|
||||||
|
strcat(options.szBSPName, ".prt");
|
||||||
|
remove(options.szBSPName);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue