mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 17:40:36 +00:00
replaced parameters of geo_dist in precise_mouseover to fix incorrect working sometimes
This commit is contained in:
parent
d077dc959c
commit
f0e132f57a
@ -4471,7 +4471,7 @@ EX void precise_mouseover() {
|
|||||||
transmatrix cov = ggmatrix(mouseover2);
|
transmatrix cov = ggmatrix(mouseover2);
|
||||||
forCellIdEx(c1, i, mouseover2) {
|
forCellIdEx(c1, i, mouseover2) {
|
||||||
hyperpoint h1 = tC0(cov * currentmap->adj(mouseover2, i));
|
hyperpoint h1 = tC0(cov * currentmap->adj(mouseover2, i));
|
||||||
ld dist = geo_dist(h1, h, iTable) - geo_dist(C0, h1, iTable);
|
ld dist = geo_dist(h, h1, iTable) - geo_dist(C0, h1, iTable);
|
||||||
if(dist < best) mouseover = c1, best = dist;
|
if(dist < best) mouseover = c1, best = dist;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user