diff --git a/cell.cpp b/cell.cpp index fa893c39..a123c3da 100644 --- a/cell.cpp +++ b/cell.cpp @@ -884,8 +884,8 @@ int heptdistance(heptagon *h1, heptagon *h2) { if(h1 == h2) return d; for(int i=0; imove(i) == h2) return d + 1; int d1 = h1->distance, d2 = h2->distance; - if(d1 >= d2) d++, h1 = createStep(h1, binarytiling ? 5 : 0); - if(d2 > d1) d++, h2 = createStep(h2, binarytiling ? 5 : 0); + if(d1 >= d2) d++, h1 = createStep(h1, binary::updir()); + if(d2 > d1) d++, h2 = createStep(h2, binary::updir()); } } diff --git a/hyper.h b/hyper.h index 41661b2d..e749b0e9 100644 --- a/hyper.h +++ b/hyper.h @@ -5645,6 +5645,7 @@ namespace solv { bool in_perspective(); extern int noclipped; -void draw_radar(bool cornermode); +void draw_radar(bool cornermode); +namespace binary { int updir(); } } \ No newline at end of file