Ignore scenery thinker for player objects
Prevents Lua from being able to remove player objects using MF_SCENERY and causing potential crashes
This commit is contained in:
1 parent
7099e4d739
commit
ffa7b27a9e
1 file changed
+1
-1
+1
-1
@@ -9310,7 +9310,7 @@ void P_MobjThinker(mobj_t *mobj)
|
||||
mobj->frame = (mobj->frame & ~FF_TRANSMASK) | (((NUMTRANSMAPS-1) - mobj->fuse / 2) << FF_TRANSSHIFT);
|
||||
|
||||
// Special thinker for scenery objects
|
||||
if (mobj->flags & MF_SCENERY)
|
||||
if (mobj->flags & MF_SCENERY && !mobj->player)
|
||||
{
|
||||
P_MobjSceneryThink(mobj);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user