- changed infighting check so that the static skill checker does not access the level
Instead the level needs to be queried now.
This commit is contained in:
parent
d0942bcb97
commit
1dc11c5032
6 changed files with 16 additions and 7 deletions
|
|
@ -1622,7 +1622,7 @@ bool AActor::OkayToSwitchTarget(AActor *other)
|
|||
int infight;
|
||||
if (flags7 & MF7_FORCEINFIGHTING) infight = 1;
|
||||
else if (flags5 & MF5_NOINFIGHTING) infight = -1;
|
||||
else infight = G_SkillProperty(SKILLP_Infight);
|
||||
else infight = Level->GetInfighting();
|
||||
|
||||
if (infight < 0 && other->player == NULL && !IsHostile (other))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue