From 08b1ff3b0ba4796908d9aee601c62d9ce54f091f Mon Sep 17 00:00:00 2001 From: Samuel Villareal Date: Sat, 18 Sep 2010 03:02:38 +0000 Subject: + A_AcolyteSpecial fixed Subversion-branch: /branches/strife-branch Subversion-revision: 2101 --- src/strife/p_enemy.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/strife/p_enemy.c b/src/strife/p_enemy.c index fed64e85..acebb77f 100644 --- a/src/strife/p_enemy.c +++ b/src/strife/p_enemy.c @@ -2874,7 +2874,6 @@ void A_BossDeath (mobj_t* mo) // void A_AcolyteSpecial(mobj_t* actor) { - int p; int i; thinker_t* th; @@ -2883,12 +2882,11 @@ void A_AcolyteSpecial(mobj_t* actor) for(i = 0; i < MAXPLAYERS; i++) { - if(playeringame[i]) - p++; + if(playeringame[i] && &players[i].health > 0) + break; } - // [STRIFE] TODO - whats the point of this? - if(p == 8) + if(i == 8) return; for(th = thinkercap.next; th != &thinkercap; th = th->next) -- cgit v1.2.3