From acaa04dace0d89cea76ea0cb9bce244a6dd6c746 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 8 Dec 2022 22:52:00 +0100 Subject: [PATCH] fixed mouseover selection in embedded sphere --- graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph.cpp b/graph.cpp index 5ecd7de5..6be1d74a 100644 --- a/graph.cpp +++ b/graph.cpp @@ -4037,7 +4037,7 @@ EX int get_darkval(cell *c, int d) { EX ld mousedist(shiftmatrix T) { if(GDIM == 2) return hdist(mouseh, tC0(T)); - shiftpoint T1 = tC0(orthogonal_move_fol(T, cgi.FLOOR)); + shiftpoint T1 = orthogonal_move_fol(T, cgi.FLOOR) * tile_center(); if(mouseaim_sensitivity) return sqhypot_d(2, T1.h) + (point_behind(T1) ? 1e10 : 0); hyperpoint h1; applymodel(T1, h1);