Skip to content

Commit

Permalink
Fix edges of automap when am_antialiasing CVAR is on
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Sep 2, 2023
1 parent 44724a4 commit 4c6b06d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/am_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -2097,6 +2097,15 @@ static void AM_AntiAliasing(void)
dest[x] = tinttab33[(dest[x - MAPWIDTH] << 8) + dest[x]];

memcpy(mapscreen, dest, MAPAREA);

for (int x = 0; x < MAPWIDTH; x++)
mapscreen[x] = tinttab33[mapscreen[x]];

for (int y = 0; y <= (int)MAPAREA - MAPWIDTH; y += MAPWIDTH)
{
mapscreen[y] = tinttab33[mapscreen[y]];
mapscreen[y + MAPWIDTH - 1] = tinttab33[mapscreen[y + MAPWIDTH - 1]];
}
}

void AM_Drawer(void)
Expand Down

0 comments on commit 4c6b06d

Please sign in to comment.