foxygit / doom Log in
commit 6bb2e8481d33ecd2d489c01fba2940c2c315a995
Author:     James Haley <haleyjd@hotmail.com>
AuthorDate: Mon Oct 4 05:40:10 2010 +0000
Commit:     James Haley <haleyjd@hotmail.com>
CommitDate: Mon Oct 4 05:40:10 2010 +0000

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

    Subversion-branch: /branches/strife-branch
    Subversion-revision: 2155
---
 src/strife/p_enemy.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/strife/p_enemy.c b/src/strife/p_enemy.c
index 09cd4dfc..e6665d38 100644
--- a/src/strife/p_enemy.c
+++ b/src/strife/p_enemy.c
@@ -1748,7 +1748,8 @@ void A_ProgrammerAttack(mobj_t* actor)
     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;