Added missing checking for LOOKALLAROUND.

This commit is contained in:
Ru5tK1ng 2024-04-29 00:46:12 -05:00 committed by Rachael Alexanderson
parent c03f7889bf
commit 3318e540b6

View file

@ -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