From caf8fe9cbd4cbba1eb9486583a41585036643074 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 18 Feb 2023 19:04:56 -0700 Subject: [PATCH] bsputils: remove Light_PointInSolid bounds check hack it was returning points outside of the level as "non-solid" which is wrong for sealed maps --- common/bsputils.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/common/bsputils.cc b/common/bsputils.cc index 1aa0601e..5929c6b3 100644 --- a/common/bsputils.cc +++ b/common/bsputils.cc @@ -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); }