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:
Kevin Shanahan 2013-03-06 10:22:28 +10:30
parent 7e9b2dd43a
commit 9f2691e3b6
1 changed files with 4 additions and 4 deletions

View File

@ -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;
} }