fix statue being tangible for ~40 tics post burst mobj spawn

This commit is contained in:
ashifolfi 2022-11-20 18:46:41 -05:00
parent e6780f2bee
commit aa8410c612

View file

@ -1405,6 +1405,9 @@ void A_StatueBurst(mobj_t *actor)
if (LUA_CallAction(A_STATUEBURST, actor)) if (LUA_CallAction(A_STATUEBURST, actor))
return; 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))) if (!locvar1 || !(new = P_SpawnMobjFromMobj(actor, 0, 0, 0, locvar1)))
return; return;