From 8b82460201d5ecce7e9de873ed25ba933b774bef Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Fri, 25 Nov 2022 00:32:31 -0700 Subject: [PATCH] decompile: output source brush number --- common/decompile.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/decompile.cc b/common/decompile.cc index 237e3df8..6e37c46d 100644 --- a/common/decompile.cc +++ b/common/decompile.cc @@ -152,15 +152,15 @@ struct compiled_brush_t return; } - /*if (source) { + if (source) { fmt::print(stream, "// generated from brush #{}\n", static_cast(source - bsp->dbrushes.data())); - for (auto &side : sides) { + /*for (auto &side : sides) { fmt::print(stream, "// side #{}: {} {}\n", static_cast(side.source - bsp->dbrushsides.data()), side.plane.normal, side.plane.dist); - } - }*/ + }*/ + } fmt::print(stream, "{{\n");