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