bsputils: remove Light_PointInSolid bounds check hack

it was returning points outside of the level as "non-solid" which is
wrong for sealed maps
This commit is contained in:
Eric Wasylishen 2023-02-18 19:04:56 -07:00
parent 7d6ed20dc1
commit caf8fe9cbd
1 changed files with 0 additions and 8 deletions

View File

@ -276,14 +276,6 @@ static bool Light_PointInSolid_r(const mbsp_t *bsp, const int nodenum, const qve
// Tests hull 0 of the given model
bool Light_PointInSolid(const mbsp_t *bsp, const dmodelh2_t *model, const qvec3d &point)
{
// fast bounds check
for (int i = 0; i < 3; ++i) {
if (point[i] < model->mins[i])
return false;
if (point[i] > model->maxs[i])
return false;
}
return Light_PointInSolid_r(bsp, model->headnode[0], point);
}