1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-13 17:06:52 +00:00

replaced parameters of geo_dist in precise_mouseover to fix incorrect working sometimes

This commit is contained in:
Zeno Rogue 2020-03-05 20:24:02 +01:00
parent d077dc959c
commit f0e132f57a

View File

@ -4471,7 +4471,7 @@ EX void precise_mouseover() {
transmatrix cov = ggmatrix(mouseover2);
forCellIdEx(c1, i, mouseover2) {
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;
}
return;