From 407b39cad1e0ad5cd63b3d791879fb544f02b34a Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 9 Apr 2022 23:30:42 -0600 Subject: [PATCH] qbsp.hh: remove writebsp.hh and outside.hh includes --- include/qbsp/qbsp.hh | 4 ---- include/qbsp/surfaces.hh | 5 ++++- qbsp/qbsp.cc | 2 ++ qbsp/surfaces.cc | 1 + 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/include/qbsp/qbsp.hh b/include/qbsp/qbsp.hh index 066ef024..cfc19a7a 100644 --- a/include/qbsp/qbsp.hh +++ b/include/qbsp/qbsp.hh @@ -284,7 +284,6 @@ enum #include #include -#include struct mtexinfo_t { @@ -370,7 +369,4 @@ struct node_t bool opaque() const; }; -#include -#include - int qbsp_main(int argc, const char **argv); diff --git a/include/qbsp/surfaces.hh b/include/qbsp/surfaces.hh index bdf2aac9..be0d1268 100644 --- a/include/qbsp/surfaces.hh +++ b/include/qbsp/surfaces.hh @@ -23,6 +23,9 @@ #include -void FreeNodes(node_t* node); +struct node_t; +class mapentity_t; + +void FreeNodes(node_t *node); void MakeVisibleFaces(mapentity_t *entity, node_t *headnode); void MakeMarkFaces(mapentity_t* entity, node_t* headnode); diff --git a/qbsp/qbsp.cc b/qbsp/qbsp.cc index a8911d42..163eeb46 100644 --- a/qbsp/qbsp.cc +++ b/qbsp/qbsp.cc @@ -37,6 +37,8 @@ #include #include #include +#include +#include #include diff --git a/qbsp/surfaces.cc b/qbsp/surfaces.cc index 1fc92889..562a827f 100644 --- a/qbsp/surfaces.cc +++ b/qbsp/surfaces.cc @@ -25,6 +25,7 @@ #include #include #include +#include #include #include