1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-18 11:14:49 +00:00

fixed inverse_exp being used in non-Sol in makeradar

This commit is contained in:
Zeno Rogue 2019-07-31 17:58:07 +02:00
parent a077e075b9
commit 1dd8a09bfd

View File

@ -769,7 +769,7 @@ pair<bool, hyperpoint> makeradar(hyperpoint h) {
using namespace hyperpoint_vec;
ld d = hdist0(h);
if(solv::geodesic_movement) {
if(sol && solv::geodesic_movement) {
h = solv::inverse_exp(h, true);
ld r = hypot_d(3, h);
if(r < 1) h = h * (atanh(r) / r);