mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-17 23:17:39 +00:00
cellrotations are now structs, and include inverses
This commit is contained in:
9
reg3.cpp
9
reg3.cpp
@@ -1267,9 +1267,14 @@ EX void generate_cellrotations() {
|
||||
for(int x=0; x<S7; x++) if(perm[x] == -1) bad = true;
|
||||
if(bad) continue;
|
||||
|
||||
cr.emplace_back(S, perm);
|
||||
cr.emplace_back(geometry_information::cellrotation_t{S, perm, 0});
|
||||
}
|
||||
|
||||
|
||||
int rots = isize(cr);
|
||||
for(int i=0; i<rots; i++)
|
||||
for(int j=0; j<rots; j++)
|
||||
if(cr[i].mapping[cr[j].mapping[0]] == 0 && cr[i].mapping[cr[j].mapping[1]] == 1 && cr[i].mapping[cr[j].mapping[2]] == 2)
|
||||
cr[i].inverse_id = j;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user