Skip to content

Commit

Permalink
Merge remote-tracking branch 'public/next' into 2215
Browse files Browse the repository at this point in the history
  • Loading branch information
Lactozilla committed Jan 25, 2025
2 parents 63e92b5 + 596c105 commit e9abba8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
7 changes: 6 additions & 1 deletion src/p_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ void P_RecalcPrecipInSector(sector_t *sector);
void P_PrecipitationEffects(void);

void P_RemoveMobj(mobj_t *th);
boolean P_MobjWasRemoved(mobj_t *th);
void P_RemoveSavegameMobj(mobj_t *th);
boolean P_SetMobjState(mobj_t *mobj, statenum_t state);
void P_RunShields(void);
Expand All @@ -301,6 +300,12 @@ boolean P_CheckSkyHit(mobj_t *mo, line_t *line);
void P_PushableThinker(mobj_t *mobj);
void P_SceneryThinker(mobj_t *mobj);

// This does not need to be added to Lua.
// To test it in Lua, check mobj.valid
FUNCINLINE static ATTRINLINE boolean P_MobjWasRemoved(mobj_t *mobj)
{
return mobj == NULL || mobj->thinker.function.acp1 != (actionf_p1)P_MobjThinker;
}

fixed_t P_MobjFloorZ(sector_t *sector, sector_t *boundsec, fixed_t x, fixed_t y, fixed_t radius, line_t *line, boolean lowest, boolean perfect);
fixed_t P_MobjCeilingZ(sector_t *sector, sector_t *boundsec, fixed_t x, fixed_t y, fixed_t radius, line_t *line, boolean lowest, boolean perfect);
Expand Down
9 changes: 0 additions & 9 deletions src/p_mobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -11282,15 +11282,6 @@ void P_RemoveMobj(mobj_t *mobj)
#endif
}

// This does not need to be added to Lua.
// To test it in Lua, check mobj.valid
boolean P_MobjWasRemoved(mobj_t *mobj)
{
if (mobj && mobj->thinker.function.acp1 == (actionf_p1)P_MobjThinker)
return false;
return true;
}

void P_RemovePrecipMobj(precipmobj_t *mobj)
{
// unlink from sector and block lists
Expand Down

0 comments on commit e9abba8

Please sign in to comment.