summaryrefslogtreecommitdiff
path: root/src/strife/p_enemy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/strife/p_enemy.c')
-rw-r--r--src/strife/p_enemy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/strife/p_enemy.c b/src/strife/p_enemy.c
index 615930ba..c7c793d0 100644
--- a/src/strife/p_enemy.c
+++ b/src/strife/p_enemy.c
@@ -722,7 +722,7 @@ P_LookForPlayers
sector_t* sector;
angle_t an;
fixed_t dist;
- mobj_t * master = players[actor->allegiance].mo;
+ mobj_t * master = players[actor->miscdata].mo;
// haleyjd 09/05/10: handle Allies
if(actor->flags & MF_ALLY)
@@ -734,7 +734,7 @@ P_LookForPlayers
// allegiance. Other allies do it unconditionally.
if(master && master->target &&
(master->target->type != MT_REBEL1 ||
- master->target->allegiance != actor->allegiance))
+ master->target->miscdata != actor->miscdata))
{
actor->target = master->target;
}
@@ -747,7 +747,7 @@ P_LookForPlayers
// friendly Rebel or the allied player.
if(!linetarget ||
actor->target->type == MT_REBEL1 &&
- actor->target->allegiance == actor->allegiance ||
+ actor->target->miscdata == actor->miscdata ||
actor->target == master)
{
actor->target = NULL;