Skip to content

Commit

Permalink
Fix disappearing grid lines near the automap boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
AXDOOMER committed Oct 14, 2019
1 parent 56ccf3a commit ba68ddb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions am_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -1070,8 +1070,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 @@ -1087,8 +1086,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 ba68ddb

Please sign in to comment.