qbsp: fix not being able to see between leafs within a func_illusionary_visblocker
This commit is contained in:
parent
2ea0076160
commit
ddf29d4104
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue