From aa8410c61251d7ead72e5b64e5e1e0bc7aed45c7 Mon Sep 17 00:00:00 2001 From: ashifolfi Date: Sun, 20 Nov 2022 18:46:41 -0500 Subject: [PATCH 1/2] fix statue being tangible for ~40 tics post burst mobj spawn --- src/p_enemy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/p_enemy.c b/src/p_enemy.c index 26465d10e..6b8825b67 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -1405,6 +1405,9 @@ void A_StatueBurst(mobj_t *actor) if (LUA_CallAction(A_STATUEBURST, actor)) return; + // make statue intangible upon spawning so you can't stand above the created object for 40 tics + actor->flags |= ~MF_SOLID; + if (!locvar1 || !(new = P_SpawnMobjFromMobj(actor, 0, 0, 0, locvar1))) return; From 1fb6adf390bf701e77530475f6d6263aa6b6899c Mon Sep 17 00:00:00 2001 From: ashi Date: Wed, 23 Nov 2022 16:22:52 +0000 Subject: [PATCH 2/2] change `|=` to `&=` --- src/p_enemy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_enemy.c b/src/p_enemy.c index 6b8825b67..ece4f3814 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -1406,7 +1406,7 @@ void A_StatueBurst(mobj_t *actor) return; // make statue intangible upon spawning so you can't stand above the created object for 40 tics - actor->flags |= ~MF_SOLID; + actor->flags &= ~MF_SOLID; if (!locvar1 || !(new = P_SpawnMobjFromMobj(actor, 0, 0, 0, locvar1))) return;