qbsp: fix not being able to see between leafs within a func_illusionary_visblocker

This commit is contained in:
Eric Wasylishen 2017-10-25 12:04:52 -07:00
parent 2ea0076160
commit ddf29d4104
1 changed files with 4 additions and 4 deletions

View File

@ -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 &&