1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 18:37:39 +00:00

rots:: fixed the confusion when switching tilings

This commit is contained in:
Zeno Rogue
2019-08-27 22:21:17 +02:00
parent c6ca145d43
commit 443ba65730
2 changed files with 3 additions and 3 deletions

View File

@@ -1130,10 +1130,10 @@ EX namespace rots {
return cspin(3, 2, -z) * cspin(0, 1, -z);
}
std::unordered_map<int, transmatrix> saved_matrices;
struct hrmap_rotation_space : hybrid::hrmap_hybrid {
std::unordered_map<int, transmatrix> saved_matrices;
transmatrix relative_matrix(cell *c1, int i) {
if(i == c1->type-2) return uzpush(-cgi.plevel) * spin(-2*cgi.plevel);
if(i == c1->type-1) return uzpush(+cgi.plevel) * spin(+2*cgi.plevel);