- added MF7_NOINFIGHTSPECIES flag.
This commit is contained in:
parent
5ea8ad54a4
commit
35033891ac
3 changed files with 5 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue