qbsp: remove obsolete/wrong comment

This commit is contained in:
Eric Wasylishen 2022-05-04 20:53:41 -06:00
parent 1df848cfc1
commit 7275155d62
2 changed files with 8 additions and 10 deletions

View File

@ -745,16 +745,6 @@ static void Brush_LoadEntity(mapentity_t *dst, const mapentity_t *src, const int
int lmshift;
bool all_detail, all_detail_fence, all_detail_illusionary;
/*
* The brush list needs to be ordered (lowest to highest priority):
* - detail_illusionary (which is saved as empty)
* - liquid
* - detail_fence
* - detail (which is solid)
* - sky
* - solid
*/
classname = ValueForKey(src, "classname");
/* Origin brush support */

View File

@ -896,6 +896,14 @@ TEST(testmaps_q2, areaportal)
// the areaportal leaf itself actually gets assigned to one of the two sides' areas
EXPECT_THAT(areaportal_leaf->area, AnyOf(1, 2));
EXPECT_THAT(0, void_leaf->area); // a solid leaf gets the invalid area
// check the func_areaportal entity had its "style" set
auto ents = EntData_Parse(bsp.dentdata);
auto it = std::find_if(ents.begin(), ents.end(),
[](const entdict_t &dict) { return dict.get("classname") == "func_areaportal"; });
ASSERT_NE(it, ents.end());
ASSERT_EQ("1", it->get("style"));
}
TEST(testmaps_q2, base1)