Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed: A_LookEx did not account for the +LOOKALLAROUND flag.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e62651e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this check also need to be fixed on line 2142 (and possible in other places where P_IsVisible gets called downstream) as well?
Otherwise enemies always default to calling P_LookForPlayers with the allaround flag as true if they didn't have a hated TID or soundtarget available. Since you've fixed P_IsVisible to now properly account for the flag, this causes enemies to behave as if they were flagged as LOOKALLAROUND when they are not.
It looks like this check was added properly to A_Look (See line 1965) a long time ago, but not to A_LookEx.