We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2236039 commit bbd154bCopy full SHA for bbd154b
rogueviz/seuphorica.cpp
@@ -572,8 +572,13 @@ bool draw(cell *c, const shiftmatrix& V) {
572
wider w(3);
573
auto cw = tile_orientation[c];
574
auto cw1 = tile_orientation[c1];
575
- for(const shiftmatrix& V1: hr::span_at(current_display->all_drawn_copies, c1)) {
+ shiftmatrix V1; ld bestd = HUGE_VAL;
576
+ for(auto& cV1: hr::span_at(current_display->all_drawn_copies, c1)) {
577
+ ld d = hdist(cV1*tile_center(), V*tile_center());
578
+ if(d < bestd) bestd = d, V1 = cV1;
579
+ }
580
581
+ if(bestd < HUGE_VAL) {
582
auto pt0 = [&] (cellwalker cw, int id, ld r = 4) {
583
r /= gigscale;
584
return currentmap->get_corner(cw.at, (cw+id+(cw.mirrored?0:1)+c->type/2).spin, r);
0 commit comments