1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-06-29 23:38:49 +00:00

fix relative_matrix in elliptic 3D

This commit is contained in:
Zeno Rogue
2019-08-27 09:18:59 +02:00
parent ea67cd88f1
commit 8b5c0f923d
+1 -1
View File
@@ -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;
}