Skip to content

Commit

Permalink
Added missing checking for LOOKALLAROUND.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ru5tK1ng authored and madame-rachelle committed Apr 30, 2024
1 parent c03f788 commit 3318e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playsim/p_enemy.cpp
Expand Up @@ -2139,7 +2139,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_LookEx)

if (!(flags & LOF_NOSIGHTCHECK))
{
if (!P_LookForPlayers(self, true, &params))
if (!P_LookForPlayers(self, (self->flags4 & MF4_LOOKALLAROUND), &params)) // [RK] Account for the flag being set.
return 0;
}
else
Expand Down

0 comments on commit 3318e54

Please sign in to comment.