mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-13 12:17:10 +00:00
replaced parameters of geo_dist in precise_mouseover to fix incorrect working sometimes
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user