From 998abd2f775e94053831cea65dcc50b4edcb186c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 27 Dec 2019 12:41:54 +0100 Subject: [PATCH] nicer Greatwall grid lines --- celldrawer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/celldrawer.cpp b/celldrawer.cpp index 57b5e6c6..0c1bb039 100644 --- a/celldrawer.cpp +++ b/celldrawer.cpp @@ -758,11 +758,14 @@ void celldrawer::draw_boat() { void celldrawer::draw_grid() { + int prec = sphere ? 3 : 1; + prec += vid.linequality; + if(vid.grid && c->bardir != NODIR && c->bardir != NOBARRIERS && c->land != laHauntedWall && c->barleft != NOWALLSEP_USED && GDIM == 2) { color_t col = darkena(0x505050, 0, 0xFF); - queueline(tC0(V), V*tC0(cgi.heptmove[c->bardir]), col, 2 + vid.linequality); - queueline(tC0(V), V*tC0(cgi.hexmove[c->bardir]), col, 2 + vid.linequality); + gridline(V, C0, tC0(cgi.heptmove[c->bardir]), col, prec+1); + gridline(V, C0, tC0(cgi.hexmove[c->bardir]), col, prec+1); } if(inmirrorcount) return; @@ -782,9 +785,6 @@ void celldrawer::draw_grid() { // hyper heptagonal: 0.6150 // hyper: 0.3798 - int prec = sphere ? 3 : 1; - prec += vid.linequality; - if(0); #if MAXMDIM == 4 else if(WDIM == 3) {