Skip to content

Commit

Permalink
qbsp: remove treating __TB_empty as skip
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwa committed Nov 23, 2024
1 parent 9d6ce6d commit 4e11e3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions qbsp/map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,6 @@ static bool IsSkipName(const char *name)
return true;
if (!Q_strcasecmp(name, "null")) // zhlt compat
return true;
if (!Q_strcasecmp(name, "__TB_empty"))
return true;
return false;
}

Expand Down
4 changes: 2 additions & 2 deletions tests/test_qbsp_q2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -734,8 +734,8 @@ TEST(testmapsQ2, tbCleanup)
const auto [bsp, bspx, prt] = LoadTestmapQ2("q2_tb_cleanup.map");

{
SCOPED_TRACE("check that __TB_empty was converted to skip");
EXPECT_EQ(nullptr, BSP_FindFaceAtPoint(&bsp, &bsp.dmodels[0], {0, 0, 0}));
SCOPED_TRACE("check that __TB_empty was not converted to skip");
EXPECT_NE(nullptr, BSP_FindFaceAtPoint(&bsp, &bsp.dmodels[0], {0, 0, 0}));
}

{
Expand Down

0 comments on commit 4e11e3e

Please sign in to comment.