From 752cd95c028c8e5155f9867480ea37da295ed1d3 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 20 May 2023 21:17:14 -0600 Subject: [PATCH] qbsp: -debugexpand: write to .bsp output dir --- qbsp/map.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qbsp/map.cc b/qbsp/map.cc index cc1e8e8f..b77077e3 100644 --- a/qbsp/map.cc +++ b/qbsp/map.cc @@ -3290,7 +3290,10 @@ void ProcessMapBrushes() hull = qbsp_options.debugexpand.hull_bounds_value(); } - WriteMapBrushMap("expanded.map", map.world_entity().mapbrushes, hull); + fs::path name = qbsp_options.bsp_path; + name.replace_extension("expanded.map"); + + WriteMapBrushMap(name, map.world_entity().mapbrushes, hull); } }