Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Jan 17, 2025
1 parent 25455cb commit 750e606
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion releasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* The `vid_scaleapi` CVAR is now back to `direct3d9` by default.
* These changes have been made to the support of `DEHACKED` lumps:
* `Retro bits = CRUSHABLE` now works as intended.
* The `Hit points` of decorative corpses have been changed from `0` back to `1000`.
* The `Hit points` of decorative corpses have been changed from `0` back to `1000` by default.

![](https://github.com/bradharding/www.doomretro.com/raw/master/wiki/bigdivider.png)

Expand Down
2 changes: 1 addition & 1 deletion src/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{ \
/* doomednum */ -1, \
/* spawnstate */ 0, \
/* spawnhealth */ 1000, \
/* spawnhealth */ 0, \
/* gibhealth */ 0, \
/* giblevel */ 0, \
/* seestate */ S_NULL, \
Expand Down
14 changes: 8 additions & 6 deletions src/p_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -2119,14 +2119,16 @@ static bool nofit;
static void PIT_ChangeSector(mobj_t *thing)
{
int flags;
int flags2;

if (P_ThingHeightClip(thing))
return; // keep checking

flags = thing->flags;
flags2 = thing->flags2;

// crunch bodies to giblets
if ((flags & MF_CORPSE) || (thing->flags2 & MF2_CRUSHABLE))
if ((flags & MF_CORPSE) || (flags2 & MF2_CRUSHABLE))
{
if (thing->player)
{
Expand Down Expand Up @@ -2162,7 +2164,7 @@ static void PIT_ChangeSector(mobj_t *thing)

thing->flags &= ~MF_SOLID;

if (r_corpses_mirrored && (M_BigRandom() & 1) && !(thing->flags2 & MF2_NOMIRROREDCORPSE)
if (r_corpses_mirrored && (M_BigRandom() & 1) && !(flags2 & MF2_NOMIRROREDCORPSE)
&& (thing->type != MT_PAIN || !doom4vanilla))
thing->flags2 |= MF2_MIRRORED;

Expand All @@ -2189,7 +2191,7 @@ static void PIT_ChangeSector(mobj_t *thing)
}

// killough 11/98: kill touchy things immediately
if ((flags & MF_TOUCHY) && ((thing->flags2 & MF2_ARMED) || sentient(thing)))
if ((flags & MF_TOUCHY) && ((flags2 & MF2_ARMED) || sentient(thing)))
{
P_DamageMobj(thing, NULL, NULL, thing->health, true, false); // kill object
return;
Expand Down Expand Up @@ -2248,9 +2250,9 @@ static void PIT_ChangeSector(mobj_t *thing)
M_StringCopy(name, thing->name, sizeof(name));
else
M_snprintf(name, sizeof(name), "%s %s%s",
((thing->flags & MF_FRIEND) && thing->type < NUMMOBJTYPES && monstercount[thing->type] == 1 ? "the" :
(isvowel(thing->info->name1[0]) && !(thing->flags & MF_FRIEND) ? "an" : "a")),
((thing->flags & MF_FRIEND) ? "friendly " : ""),
((flags & MF_FRIEND) && thing->type < NUMMOBJTYPES && monstercount[thing->type] == 1 ? "the" :
(isvowel(thing->info->name1[0]) && !(flags & MF_FRIEND) ? "an" : "a")),
((flags & MF_FRIEND) ? "friendly " : ""),
(*thing->info->name1 ? thing->info->name1 : "monster"));

name[0] = toupper(name[0]);
Expand Down

0 comments on commit 750e606

Please sign in to comment.