1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-16 02:09:59 +00:00

fixed confusion in 3D elliptic spaces

This commit is contained in:
Zeno Rogue 2019-10-27 00:45:34 +02:00
parent d0ef1c7578
commit 29d1427154

View File

@ -887,7 +887,9 @@ EX namespace reg3 {
dynamicval<hrmap*> cm(currentmap, binary_map); dynamicval<hrmap*> cm(currentmap, binary_map);
T = binary_map->relative_matrix(p2.first, p1.first); T = binary_map->relative_matrix(p2.first, p1.first);
} }
return inverse(p1.second) * T * p2.second; T = inverse(p1.second) * T * p2.second;
if(elliptic && T[LDIM][LDIM] < 0) T = centralsym * T;
return T;
} }
vector<hyperpoint> get_vertices(cell* c) override { vector<hyperpoint> get_vertices(cell* c) override {