mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 12:19:18 +00:00
fixed mouseover selection in embedded sphere
This commit is contained in:
parent
fbeac1354d
commit
acaa04dace
@ -4037,7 +4037,7 @@ EX int get_darkval(cell *c, int d) {
|
|||||||
|
|
||||||
EX ld mousedist(shiftmatrix T) {
|
EX ld mousedist(shiftmatrix T) {
|
||||||
if(GDIM == 2) return hdist(mouseh, tC0(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);
|
if(mouseaim_sensitivity) return sqhypot_d(2, T1.h) + (point_behind(T1) ? 1e10 : 0);
|
||||||
hyperpoint h1;
|
hyperpoint h1;
|
||||||
applymodel(T1, h1);
|
applymodel(T1, h1);
|
||||||
|
Loading…
Reference in New Issue
Block a user