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

gridline now automatically improves the precision when edges are long

This commit is contained in:
Zeno Rogue 2019-12-27 12:42:16 +01:00
parent 998abd2f77
commit 3e33aadba4

View File

@ -3589,6 +3589,8 @@ bool celldrawer::cell_clipped() {
}
EX void gridline(const transmatrix& V1, const hyperpoint h1, const transmatrix& V2, const hyperpoint h2, color_t col, int prec) {
ld d = hdist(h1, h2);
while(d > .5 && d < 100) d /= 2, prec++;
#if MAXMDIM >= 4
if(WDIM == 2 && GDIM == 3) {
ld eps = cgi.human_height/100;