- Implement hostile coop for -FRIENDLY players.

This commit is contained in:
Rachael Alexanderson 2017-03-10 14:00:58 -05:00
parent 786c4f01c8
commit ff3d3f13c8
2 changed files with 1 additions and 4 deletions

View file

@ -250,9 +250,6 @@ void P_NoiseAlert (AActor *target, AActor *emitter, bool splash, double maxdist)
if (emitter == NULL) if (emitter == NULL)
return; return;
/*if (target != NULL && target->player && !(target->flags & MF_FRIENDLY))
return;*/
if (target != NULL && target->player && (target->player->cheats & CF_NOTARGET)) if (target != NULL && target->player && (target->player->cheats & CF_NOTARGET))
return; return;

View file

@ -7273,7 +7273,7 @@ bool AActor::IsTeammate (AActor *other)
} }
else if (!deathmatch && player && other->player) else if (!deathmatch && player && other->player)
{ {
return true; return (!((flags ^ other->flags) & MF_FRIENDLY));
} }
else if (teamplay) else if (teamplay)
{ {