From ddf29d41047252d7471f595d97bad0d0a967826d Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Wed, 25 Oct 2017 12:04:52 -0700 Subject: [PATCH] qbsp: fix not being able to see between leafs within a func_illusionary_visblocker --- qbsp/portals.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qbsp/portals.cc b/qbsp/portals.cc index 50a2c0ce..fe72bd4c 100644 --- a/qbsp/portals.cc +++ b/qbsp/portals.cc @@ -97,14 +97,14 @@ PortalThru(const portal_t *p) if (contents0 == CONTENTS_SOLID || contents1 == CONTENTS_SOLID) return false; - /* Can't see through func_illisionary_visblocker */ - if (contents0 == CONTENTS_ILLUSIONARY_VISBLOCKER || contents1 == CONTENTS_ILLUSIONARY_VISBLOCKER) - return false; - /* If contents values are the same and not solid, can see through */ if (contents0 == contents1) return true; + /* Can't see through func_illisionary_visblocker */ + if (contents0 == CONTENTS_ILLUSIONARY_VISBLOCKER || contents1 == CONTENTS_ILLUSIONARY_VISBLOCKER) + return false; + /* If water is transparent, liquids are like empty space */ if (options.fTranswater) { if (contents0 >= CONTENTS_LAVA && contents0 <= CONTENTS_WATER &&