- added MF7_NOINFIGHTSPECIES flag.

This commit is contained in:
Christoph Oelckers 2017-02-25 20:12:30 +01:00
commit 35033891ac
3 changed files with 5 additions and 0 deletions

View file

@ -1714,6 +1714,9 @@ bool AActor::OkayToSwitchTarget (AActor *other)
}
}
if ((flags7 & MF7_NOINFIGHTSPECIES) && GetSpecies() == target->GetSpecies())
return false; // Don't fight own species.
if ((other->flags3 & MF3_NOTARGET) &&
(other->tid != TIDtoHate || TIDtoHate == 0) &&
!IsHostile (other))