From 9f2691e3b609f6725b7187fad46360187e0b86b1 Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Wed, 6 Mar 2013 10:22:28 +1030 Subject: [PATCH] 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 --- qbsp/outside.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qbsp/outside.c b/qbsp/outside.c index 045893a9..63332489 100644 --- a/qbsp/outside.c +++ b/qbsp/outside.c @@ -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); fclose(LeakFile); - // Get rid of .prt file if .pts file is generated - strcat(options.szBSPName, ".prt"); - remove(options.szBSPName); - if (options.fBspleak) { Message(msgLiteral, "BSP portal file written to %s.por\n", options.szBSPName); @@ -507,6 +503,10 @@ FillOutside(node_t *node, const int hullnum, const int numportals) } map.leakfile = true; + // Get rid of .prt file if .pts file is generated + strcat(options.szBSPName, ".prt"); + remove(options.szBSPName); + return false; }