- 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:
Christoph Oelckers 2019-01-28 14:31:23 +01:00
commit 1dc11c5032
6 changed files with 16 additions and 7 deletions

View file

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