shithub: choc

Download patch

ref: 08b1ff3b0ba4796908d9aee601c62d9ce54f091f
parent: 533755e5298ecd39bd682dfd1e33c98d80445369
author: Samuel Villareal <svkaiser@gmail.com>
date: Fri Sep 17 23:02:38 EDT 2010

+ A_AcolyteSpecial fixed

Subversion-branch: /branches/strife-branch
Subversion-revision: 2101

--- a/src/strife/p_enemy.c
+++ b/src/strife/p_enemy.c
@@ -2874,7 +2874,6 @@
 //
 void A_AcolyteSpecial(mobj_t* actor)
 {
-    int p;
     int i;
     thinker_t* th;
 
@@ -2883,12 +2882,11 @@
 
     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)