shithub: choc

Download patch

ref: 6bb2e8481d33ecd2d489c01fba2940c2c315a995
parent: 1a758de7023a79d8a9b44904caf938e58807fbbe
author: James Haley <haleyjd@hotmail.com>
date: Mon Oct 4 01:40:10 EDT 2010

Programmer should attack the player and not his own location :)

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

--- a/src/strife/p_enemy.c
+++ b/src/strife/p_enemy.c
@@ -1748,7 +1748,8 @@
     if(!actor->target)
         return;
 
-    mo = P_SpawnMobj(actor->x, actor->y, ONFLOORZ, MT_SIGIL_A_GROUND);
+    mo = P_SpawnMobj(actor->target->x, actor->target->y, ONFLOORZ, 
+                     MT_SIGIL_A_GROUND);
     mo->threshold = 25;
     mo->target = actor;
     mo->health = -2;