From 1e6e938ead52e25cade4ce098ba6e17e4e8bc765 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 4 Sep 2021 10:47:43 -0600 Subject: [PATCH] qbsp: restore writing LMSHIFT bspx lump --- qbsp/writebsp.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qbsp/writebsp.cc b/qbsp/writebsp.cc index 2eff1a6f..5f5b65cb 100644 --- a/qbsp/writebsp.cc +++ b/qbsp/writebsp.cc @@ -438,9 +438,9 @@ WriteBSPFile() CopyString(map.exported_entities, true, &bspdata.data.mbsp.entdatasize, (void**)&bspdata.data.mbsp.dentdata); CopyString(map.exported_texdata, false, &bspdata.data.mbsp.texdatasize, (void**)&bspdata.data.mbsp.dtexdata); - // TODO: pass bspx lumps to generic bsp code so they are written - - //GenLump("LMSHIFT", BSPX_LMSHIFT, 1); + if (map.needslmshifts) { + BSPX_AddLump(&bspdata, "LMSHIFT", map.exported_lmshifts.data(), map.exported_lmshifts.size()); + } ConvertBSPFormat(&bspdata, options.target_version);