1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-03 10:44:07 +02:00

tweak face visability

This commit is contained in:
Robin Appelman 2023-12-12 21:39:42 +01:00
commit 49da1f34f3

View file

@ -49,15 +49,12 @@ impl<'a> Handle<'a, Face> {
pub fn is_visible(&self) -> bool { pub fn is_visible(&self) -> bool {
let texture = self.texture(); let texture = self.texture();
!texture.flags.intersects( !texture.flags.intersects(
TextureFlags::LIGHT TextureFlags::SKY2D
| TextureFlags::SKY2D
| TextureFlags::SKY | TextureFlags::SKY
| TextureFlags::WARP
| TextureFlags::TRIGGER | TextureFlags::TRIGGER
| TextureFlags::HINT | TextureFlags::HINT
| TextureFlags::SKIP | TextureFlags::SKIP
| TextureFlags::NODRAW | TextureFlags::NODRAW,
| TextureFlags::HITBOX,
) )
} }