From 8b5c0f923d99d42441c7f858d20022ec0c6a5cd9 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 27 Aug 2019 09:18:59 +0200 Subject: [PATCH] fix relative_matrix in elliptic 3D --- sphere.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphere.cpp b/sphere.cpp index ed45847e..40d0794e 100644 --- a/sphere.cpp +++ b/sphere.cpp @@ -178,7 +178,7 @@ struct hrmap_spherical : hrmap_standard { } if(gmatrix0.count(c2) && gmatrix0.count(c1)) { transmatrix T = inverse(gmatrix0[c1]) * gmatrix0[c2]; - if(elliptic && T[2][2] < 0) + if(elliptic && T[LDIM][LDIM] < 0) T = centralsym * T; return T; }