From 650e5a5c7ff8eb6777a57dcbd15681e42b4301a1 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 8 Aug 2019 00:21:18 +0200 Subject: [PATCH] fixed the 'targeted cell' in Sol/Nil --- graph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graph.cpp b/graph.cpp index 74123ae6..2af92827 100644 --- a/graph.cpp +++ b/graph.cpp @@ -7192,7 +7192,8 @@ void precise_mouseover() { if(WDIM == 3) { mouseover2 = mouseover = viewctr.at->c7; 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) { ld dist = hdist(tC0(ggmatrix(c1)), h); if(dist < best) mouseover = c1, best = dist;