Skip to content

Commit

Permalink
add back gibs/blood fixes for crushed MF_NOBLOOD mobjs
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiangreffrath committed Sep 7, 2021
1 parent 1a5d7a8 commit 3cde09b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/doom/p_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,10 @@ boolean PIT_ChangeSector (mobj_t* thing)
{
P_SetMobjState (thing, S_GIBS);

// [crispy] no blood, no giblets
if (thing->flags & MF_NOBLOOD)
thing->sprite = SPR_TNT1;

if (gameversion > exe_doom_1_2)
thing->flags &= ~MF_SOLID;
thing->height = 0;
Expand Down Expand Up @@ -1565,7 +1569,8 @@ boolean PIT_ChangeSector (mobj_t* thing)
// spray blood in a random direction
mo = P_SpawnMobj (thing->x,
thing->y,
thing->z + thing->height/2, MT_BLOOD);
// [crispy] no blood, no.. well.. blood
thing->z + thing->height/2, (thing->flags & MF_NOBLOOD) ? MT_PUFF : MT_BLOOD);

mo->momx = P_SubRandom() << 12;
mo->momy = P_SubRandom() << 12;
Expand Down

0 comments on commit 3cde09b

Please sign in to comment.