From 62f17545b9d0fdad0e5f5dc91d2055dcbda0f554 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sun, 26 Mar 2017 16:41:16 -0600 Subject: [PATCH] qbsp: expose LoadBrush in header --- qbsp/brush.cc | 4 +--- qbsp/qbsp.hh | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/qbsp/brush.cc b/qbsp/brush.cc index 3bd94b54..01cf69ff 100644 --- a/qbsp/brush.cc +++ b/qbsp/brush.cc @@ -793,9 +793,7 @@ LoadBrush Converts a mapbrush to a bsp brush =============== */ -static brush_t * -LoadBrush(const mapbrush_t *mapbrush, const vec3_t rotate_offset, - const int hullnum) +brush_t *LoadBrush(const mapbrush_t *mapbrush, const vec3_t rotate_offset, const int hullnum) { hullbrush_t hullbrush; brush_t *brush; diff --git a/qbsp/qbsp.hh b/qbsp/qbsp.hh index d30a9859..e55a26a8 100644 --- a/qbsp/qbsp.hh +++ b/qbsp/qbsp.hh @@ -372,6 +372,9 @@ typedef struct brush_s { short lmshift; /* lightmap scaling (qu/lightmap pixel), passed to the light util */ } brush_t; +class mapbrush_t; + +brush_t *LoadBrush(const mapbrush_t *mapbrush, const vec3_t rotate_offset, const int hullnum); void FreeBrushes(brush_t *brushlist); int FindPlane(const plane_t *plane, int *side);