Skip to content

Commit

Permalink
Merge pull request #1155 from kitchen-ace/serptorch
Browse files Browse the repository at this point in the history
Heretic: custom brightmap for serpent torch
  • Loading branch information
kitchen-ace authored Feb 7, 2024
2 parents 923ae92 + c19590a commit 5f752b1
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions src/heretic/r_bmaps.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,26 @@ static const byte flame[256] =
0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,
};

static const byte serptorch[256] =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,
};

static const byte ethereal[256] =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
Expand Down Expand Up @@ -326,10 +346,6 @@ const byte *R_BrightmapForSprite (const int state)
case S_FIREBRAZIER6:
case S_FIREBRAZIER7:
case S_FIREBRAZIER8:
// Serpent Torch
case S_SERPTORCH1:
case S_SERPTORCH2:
case S_SERPTORCH3:
// Torch (artifact)
case S_ARTI_TRCH1:
case S_ARTI_TRCH2:
Expand All @@ -355,6 +371,14 @@ const byte *R_BrightmapForSprite (const int state)
return flame;
break;
}
// Serpent Torch, has stray pixels with 'flame' map
case S_SERPTORCH1:
case S_SERPTORCH2:
case S_SERPTORCH3:
{
return serptorch;
break;
}
// Iron Lich (idle and attack states)
case S_HEAD_LOOK:
case S_HEAD_FLOAT:
Expand Down

0 comments on commit 5f752b1

Please sign in to comment.