Skip to content

Commit

Permalink
Heretic: fix grid disappearing at the corners of the automap
Browse files Browse the repository at this point in the history
  • Loading branch information
JNechaevsky committed Jun 8, 2023
1 parent ff6d809 commit 0410369
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/heretic/am_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -1259,8 +1259,7 @@ void AM_drawGrid(int color)
// Figure out start of vertical gridlines
start = m_x;
if ((start - bmaporgx) % (MAPBLOCKUNITS << FRACBITS))
start += (MAPBLOCKUNITS << FRACBITS)
- ((start - bmaporgx) % (MAPBLOCKUNITS << FRACBITS));
start -= ((start - bmaporgx) % (MAPBLOCKUNITS << FRACBITS));
end = m_x + m_w;

// draw vertical gridlines
Expand All @@ -1276,8 +1275,7 @@ void AM_drawGrid(int color)
// Figure out start of horizontal gridlines
start = m_y;
if ((start - bmaporgy) % (MAPBLOCKUNITS << FRACBITS))
start += (MAPBLOCKUNITS << FRACBITS)
- ((start - bmaporgy) % (MAPBLOCKUNITS << FRACBITS));
start -= ((start - bmaporgy) % (MAPBLOCKUNITS << FRACBITS));
end = m_y + m_h;

// draw horizontal gridlines
Expand Down

0 comments on commit 0410369

Please sign in to comment.