qbsp: fix simple_worldspawn_detail_wall
This commit is contained in:
parent
3276cfec56
commit
e39c8f9cf6
|
|
@ -381,6 +381,10 @@ public:
|
||||||
|
|
||||||
bool directional_visible_contents(const contentflags_t &a, const contentflags_t &b) const override
|
bool directional_visible_contents(const contentflags_t &a, const contentflags_t &b) const override
|
||||||
{
|
{
|
||||||
|
if (contents_priority(b) > contents_priority(a)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (a.is_empty(this)) {
|
if (a.is_empty(this)) {
|
||||||
// empty can always see whatever is in `b`
|
// empty can always see whatever is in `b`
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ static face_t *TryMerge(face_t *f1, face_t *f2)
|
||||||
bool keep1, keep2;
|
bool keep1, keep2;
|
||||||
|
|
||||||
if (!f1->w.size() || !f2->w.size() || f1->planeside != f2->planeside || f1->texinfo != f2->texinfo ||
|
if (!f1->w.size() || !f2->w.size() || f1->planeside != f2->planeside || f1->texinfo != f2->texinfo ||
|
||||||
!f1->contents[0].equals(options.target_game, f2->contents[0]) || !f1->contents[1].equals(options.target_game, f2->contents[1]) ||
|
/*!f1->contents[0].equals(options.target_game, f2->contents[0]) ||*/ !f1->contents[1].equals(options.target_game, f2->contents[1]) ||
|
||||||
f1->lmshift[0] != f2->lmshift[0] || f1->lmshift[1] != f2->lmshift[1])
|
f1->lmshift[0] != f2->lmshift[0] || f1->lmshift[1] != f2->lmshift[1])
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -769,12 +769,14 @@ static face_t *FaceFromPortal(portal_t *p, int pside)
|
||||||
{
|
{
|
||||||
f->w = p->winding->flip();
|
f->w = p->winding->flip();
|
||||||
// fixme-brushbsp: was just `f->contents` on qbsp3
|
// fixme-brushbsp: was just `f->contents` on qbsp3
|
||||||
f->contents[1] = p->nodes[1]->contents;
|
f->contents[0] = p->nodes[1]->contents;
|
||||||
|
f->contents[1] = p->nodes[0]->contents;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
f->w = *p->winding;
|
f->w = *p->winding;
|
||||||
f->contents[1] = p->nodes[0]->contents;
|
f->contents[0] = p->nodes[0]->contents;
|
||||||
|
f->contents[1] = p->nodes[1]->contents;
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateFaceSphere(f);
|
UpdateFaceSphere(f);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue