Skip to content

Commit

Permalink
Heretic: Simplify Mummy Translucency
Browse files Browse the repository at this point in the history
  • Loading branch information
Noseey committed Jan 17, 2025
1 parent eea208e commit 04be75b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/heretic/r_things.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ void R_ProjectSprite(mobj_t * thing)
void R_AddSprites(sector_t * sec)
{
mobj_t *thing;
int lightnum, translucent = 0;
int lightnum;

if (sec->validcount == validcount)
return; // already added
Expand All @@ -753,23 +753,21 @@ void R_AddSprites(sector_t * sec)

for (thing = sec->thinglist; thing; thing = thing->snext)
{
// [crispy] Draw offset base frame and translucent current frame for Mummy-Leader Attack Sprites
// [crispy] draw base frame and translucent current frame for mummyleader attack
if (crispy->translucency & TRANSLUCENCY_MISSILE)
{
if (thing->info->doomednum == 45 && thing->state->sprite == SPR_MUMM && thing->frame == 32792)
if (thing->info->doomednum == 45 && thing->frame == 32792)
{
thing->frame = 23;
thing->frame = 23; // [crispy] set attack stance without fire edging
R_ProjectSprite(thing);
thing->frame = 32792;
translucent = 1;
thing->frame = 32792; // [crispy] restore Attack with fire edging
thing->flags |= MF_TRANSLUCENT;
}
}
R_ProjectSprite(thing);
if (translucent)
if (thing->info->doomednum == 45 && thing->flags & MF_TRANSLUCENT)
{
thing->flags &= ~MF_TRANSLUCENT;
translucent = 0;
}
}
}
Expand Down

0 comments on commit 04be75b

Please sign in to comment.