Skip to content

Fix inverted directLOS logic causing NPCs to see through solid blocks - #297

Open
zeng-github01 wants to merge 1 commit into
KAMKEEL:devfrom
zeng-github01:directLOS-fixes
Open

Fix inverted directLOS logic causing NPCs to see through solid blocks#297
zeng-github01 wants to merge 1 commit into
KAMKEEL:devfrom
zeng-github01:directLOS-fixes

Conversation

@zeng-github01

@zeng-github01 zeng-github01 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Fix inverted directLOS logic causing NPCs to see through solid blocks

Fixes a boolean logic short-circuit in the faction defense AI check where enabling directLOS (Direct Line of Sight) accidentally allowed NPCs to bypass physical raytracing checks and see target entities through solid blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant