Skip to content

Commit

Permalink
Fix automap title when vanilla mode on
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed May 1, 2024
1 parent 95db5e3 commit c392130
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/hu_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,11 @@ static void HU_DrawChar(int x, int y, int ch, byte *screen, int screenwidth)
{
byte *dest = &screen[(j + yy) * screenwidth + (i + xx)];

if (src == PINK && !vanilla)
*dest = 0;
if (src == PINK)
{
if (!vanilla)
*dest = 0;
}
else if (src != ' ')
*dest = src;
}
Expand Down Expand Up @@ -145,8 +148,11 @@ static void HU_DrawTranslucentChar(int x, int y, int ch, byte *screen, int scree
{
byte *dest = &screen[(j + yy) * screenwidth + (i + xx)];

if (src == PINK && !vanilla)
*dest = black40[*dest];
if (src == PINK)
{
if (!vanilla)
*dest = black40[*dest];
}
else if (src != ' ')
*dest = tinttab75[(src << 8) + *dest];
}
Expand Down

0 comments on commit c392130

Please sign in to comment.