1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-08 06:59:55 +00:00

in grid mode, don't try to draw greatwall lines outside of normal geometry pure/bitruncated

This commit is contained in:
Zeno Rogue 2024-03-21 19:40:07 +01:00
parent 1b3aecc10c
commit 6b723977dd

View File

@ -848,7 +848,7 @@ void celldrawer::draw_grid() {
int prec = grid_prec(); int prec = grid_prec();
if(vid.grid && c->bardir != NODIR && c->bardir != NOBARRIERS && c->land != laHauntedWall && if(vid.grid && c->bardir != NODIR && c->bardir != NOBARRIERS && c->land != laHauntedWall &&
c->barleft != NOWALLSEP_USED && GDIM == 2) { c->barleft != NOWALLSEP_USED && GDIM == 2 && geometry == gNormal && (PURE || BITRUNCATED)) {
color_t col = darkena(0x505050, 0, 0xFF); color_t col = darkena(0x505050, 0, 0xFF);
gridline(V, C0, tC0(cgi.heptmove[c->bardir]), col, prec+1); gridline(V, C0, tC0(cgi.heptmove[c->bardir]), col, prec+1);
gridline(V, C0, tC0(cgi.hexmove[c->bardir]), col, prec+1); gridline(V, C0, tC0(cgi.hexmove[c->bardir]), col, prec+1);