diff --git a/src/heretic/r_things.c b/src/heretic/r_things.c index f42d9c096..cc91e94f1 100644 --- a/src/heretic/r_things.c +++ b/src/heretic/r_things.c @@ -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 @@ -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; } } }