qbsp: remove obsolete/wrong comment
This commit is contained in:
parent
1df848cfc1
commit
7275155d62
|
|
@ -745,16 +745,6 @@ static void Brush_LoadEntity(mapentity_t *dst, const mapentity_t *src, const int
|
||||||
int lmshift;
|
int lmshift;
|
||||||
bool all_detail, all_detail_fence, all_detail_illusionary;
|
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");
|
classname = ValueForKey(src, "classname");
|
||||||
|
|
||||||
/* Origin brush support */
|
/* Origin brush support */
|
||||||
|
|
|
||||||
|
|
@ -896,6 +896,14 @@ TEST(testmaps_q2, areaportal)
|
||||||
// the areaportal leaf itself actually gets assigned to one of the two sides' areas
|
// the areaportal leaf itself actually gets assigned to one of the two sides' areas
|
||||||
EXPECT_THAT(areaportal_leaf->area, AnyOf(1, 2));
|
EXPECT_THAT(areaportal_leaf->area, AnyOf(1, 2));
|
||||||
EXPECT_THAT(0, void_leaf->area); // a solid leaf gets the invalid area
|
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)
|
TEST(testmaps_q2, base1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue