mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-18 23:47:40 +00:00
hat:: dualpoint now reflects the tiles correctly
This commit is contained in:
@@ -2678,8 +2678,10 @@ EX namespace linepatterns {
|
|||||||
EX ld dual_length = 0;
|
EX ld dual_length = 0;
|
||||||
EX ld dual_angle = 0;
|
EX ld dual_angle = 0;
|
||||||
|
|
||||||
hyperpoint dualpoint() {
|
hyperpoint dualpoint(cell *c) {
|
||||||
if(!aperiodic) return tile_center();
|
if(!aperiodic) return tile_center();
|
||||||
|
if(dual_length && c->master->c7 == c)
|
||||||
|
return MirrorX * xspinpush0(dual_angle * degree, dual_length);
|
||||||
if(dual_length)
|
if(dual_length)
|
||||||
return xspinpush0(dual_angle * degree, dual_length);
|
return xspinpush0(dual_angle * degree, dual_length);
|
||||||
return tile_center();
|
return tile_center();
|
||||||
@@ -2697,7 +2699,7 @@ EX namespace linepatterns {
|
|||||||
if((patTriRings.color & 0xFF)) {
|
if((patTriRings.color & 0xFF)) {
|
||||||
if(curr_dist(c2) == curr_dist(c)) continue;
|
if(curr_dist(c2) == curr_dist(c)) continue;
|
||||||
}
|
}
|
||||||
gridlinef(V, dualpoint(), V * currentmap->adj(c, i), dualpoint(), col, 2 + vid.linequality);
|
gridlinef(V, dualpoint(c), V * currentmap->adj(c, i), dualpoint(c->cmove(i)), col, 2 + vid.linequality);
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user