foxygit / doom Log in
commit 08b1ff3b0ba4796908d9aee601c62d9ce54f091f
Author:     Samuel Villareal <svkaiser@gmail.com>
AuthorDate: Sat Sep 18 03:02:38 2010 +0000
Commit:     Samuel Villareal <svkaiser@gmail.com>
CommitDate: Sat Sep 18 03:02:38 2010 +0000

    + 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)