diff --git a/include/qbsp/qbsp.hh b/include/qbsp/qbsp.hh index 1dcab55d..bef3c4a5 100644 --- a/include/qbsp/qbsp.hh +++ b/include/qbsp/qbsp.hh @@ -370,7 +370,6 @@ struct node_t bool opaque() const; }; -#include #include #include #include diff --git a/include/qbsp/solidbsp.hh b/include/qbsp/solidbsp.hh index 073b4516..a5c8a531 100644 --- a/include/qbsp/solidbsp.hh +++ b/include/qbsp/solidbsp.hh @@ -22,9 +22,14 @@ #pragma once #include +#include extern std::atomic splitnodes; +struct node_t; +struct face_t; +class mapentity_t; + void DetailToSolid(node_t *node); std::list::iterator SubdivideFace(std::list::iterator it, std::list &surfaces); node_t *SolidBSP(mapentity_t *entity, bool midsplit); diff --git a/qbsp/portals.cc b/qbsp/portals.cc index ffd591be..1a5fc861 100644 --- a/qbsp/portals.cc +++ b/qbsp/portals.cc @@ -22,6 +22,8 @@ #include #include + +#include #include node_t outside_node; // portals outside the world face this diff --git a/qbsp/qbsp.cc b/qbsp/qbsp.cc index ab64f2a6..baca346c 100644 --- a/qbsp/qbsp.cc +++ b/qbsp/qbsp.cc @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include diff --git a/qbsp/surfaces.cc b/qbsp/surfaces.cc index 2631b127..1820a982 100644 --- a/qbsp/surfaces.cc +++ b/qbsp/surfaces.cc @@ -22,6 +22,7 @@ #include #include #include +#include #include #include