- rename the flags MNOTVISIBLE and VISALWAYSFAIL to MINVISIBLE and MVISBLOCKED respectively, to reflect what they really do
This commit is contained in:
parent
ee18123f01
commit
4475240da8
5 changed files with 9 additions and 9 deletions
|
|
@ -849,7 +849,7 @@ int P_CheckSight (AActor *t1, AActor *t2, int flags)
|
|||
return false;
|
||||
}
|
||||
|
||||
if ((t2->flags8 & MF8_VISALWAYSFAIL) && !(flags & SF_IGNOREVISIBILITY))
|
||||
if ((t2->flags8 & MF8_MVISBLOCKED) && !(flags & SF_IGNOREVISIBILITY))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -873,7 +873,7 @@ sightcounts[0]++;
|
|||
// Cannot see an invisible object
|
||||
if ((flags & SF_IGNOREVISIBILITY) == 0 &&
|
||||
((t2->renderflags & RF_INVISIBLE) ||
|
||||
(t2->flags8 & MF8_MNOTVISIBLE) ||
|
||||
(t2->flags8 & MF8_MINVISIBLE) ||
|
||||
!t2->RenderStyle.IsVisible(t2->Alpha)))
|
||||
{ // small chance of an attack being made anyway
|
||||
if ((t1->Level->BotInfo.m_Thinking ? pr_botchecksight() : pr_checksight()) > 50)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue