mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-18 19:24:48 +00:00
fixed inverse_exp being used in non-Sol in makeradar
This commit is contained in:
parent
a077e075b9
commit
1dd8a09bfd
@ -769,7 +769,7 @@ pair<bool, hyperpoint> makeradar(hyperpoint h) {
|
|||||||
using namespace hyperpoint_vec;
|
using namespace hyperpoint_vec;
|
||||||
ld d = hdist0(h);
|
ld d = hdist0(h);
|
||||||
|
|
||||||
if(solv::geodesic_movement) {
|
if(sol && solv::geodesic_movement) {
|
||||||
h = solv::inverse_exp(h, true);
|
h = solv::inverse_exp(h, true);
|
||||||
ld r = hypot_d(3, h);
|
ld r = hypot_d(3, h);
|
||||||
if(r < 1) h = h * (atanh(r) / r);
|
if(r < 1) h = h * (atanh(r) / r);
|
||||||
|
Loading…
Reference in New Issue
Block a user