mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-20 18:02:50 +00:00
rogueviz::seuphorica::fix visual spam for portals in confusing spaces
This commit is contained in:
parent
2236039af6
commit
bbd154bbf0
@ -572,8 +572,13 @@ bool draw(cell *c, const shiftmatrix& V) {
|
|||||||
wider w(3);
|
wider w(3);
|
||||||
auto cw = tile_orientation[c];
|
auto cw = tile_orientation[c];
|
||||||
auto cw1 = tile_orientation[c1];
|
auto cw1 = tile_orientation[c1];
|
||||||
for(const shiftmatrix& V1: hr::span_at(current_display->all_drawn_copies, c1)) {
|
shiftmatrix V1; ld bestd = HUGE_VAL;
|
||||||
|
for(auto& cV1: hr::span_at(current_display->all_drawn_copies, c1)) {
|
||||||
|
ld d = hdist(cV1*tile_center(), V*tile_center());
|
||||||
|
if(d < bestd) bestd = d, V1 = cV1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(bestd < HUGE_VAL) {
|
||||||
auto pt0 = [&] (cellwalker cw, int id, ld r = 4) {
|
auto pt0 = [&] (cellwalker cw, int id, ld r = 4) {
|
||||||
r /= gigscale;
|
r /= gigscale;
|
||||||
return currentmap->get_corner(cw.at, (cw+id+(cw.mirrored?0:1)+c->type/2).spin, r);
|
return currentmap->get_corner(cw.at, (cw+id+(cw.mirrored?0:1)+c->type/2).spin, r);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user