mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-12 18:30:34 +00:00
fixed the 'targeted cell' in Sol/Nil
This commit is contained in:
parent
2fbca25361
commit
650e5a5c7f
@ -7192,7 +7192,8 @@ void precise_mouseover() {
|
|||||||
if(WDIM == 3) {
|
if(WDIM == 3) {
|
||||||
mouseover2 = mouseover = viewctr.at->c7;
|
mouseover2 = mouseover = viewctr.at->c7;
|
||||||
ld best = HUGE_VAL;
|
ld best = HUGE_VAL;
|
||||||
hyperpoint h = cpush(2, 1) * C0;
|
hyperpoint h =
|
||||||
|
nisot::local_perspective_used() ? inverse(nisot::local_perspective) * cpush(2, 1) * C0 : cpush(2, 1) * C0;
|
||||||
forCellEx(c1, mouseover2) {
|
forCellEx(c1, mouseover2) {
|
||||||
ld dist = hdist(tC0(ggmatrix(c1)), h);
|
ld dist = hdist(tC0(ggmatrix(c1)), h);
|
||||||
if(dist < best) mouseover = c1, best = dist;
|
if(dist < best) mouseover = c1, best = dist;
|
||||||
|
Loading…
Reference in New Issue
Block a user