foxygit / doom Log in
commit 76b6d1a239ddda25a8645ac0e94d45884b71fa5a
Author:     James Haley <haleyjd@hotmail.com>
AuthorDate: Sun Oct 26 20:29:18 2014 -0500
Commit:     James Haley <haleyjd@hotmail.com>
CommitDate: Sun Oct 26 20:29:18 2014 -0500

    Another teleport beacon correction

    Flag to be cleared is MF_SPECIAL, not MF_SOLID (verified against
    disassembly). Otherwise you get to spawn an infinite number of rebels
    from one beacon. Not to mention, it isn't SOLID to start with.
---
 src/strife/p_enemy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/strife/p_enemy.c b/src/strife/p_enemy.c
index 6e128679..8aad08fc 100644
--- a/src/strife/p_enemy.c
+++ b/src/strife/p_enemy.c
@@ -3174,8 +3174,8 @@ void A_TeleportBeacon(mobj_t* actor)
         return;
     }

-    // beacon no longer solid
-    actor->flags &= ~MF_SOLID;
+    // beacon no longer special
+    actor->flags &= ~MF_SPECIAL;

     // set color and flags
     mobj->flags |= ((actor->miscdata << MF_TRANSSHIFT) | MF_NODIALOG);