1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-14 22:07:38 +00:00

product:: works for bitruncated tilings

This commit is contained in:
Zeno Rogue
2019-08-18 20:13:46 +02:00
parent ebcaabf692
commit a2919f5a9c
5 changed files with 57 additions and 18 deletions

View File

@@ -773,8 +773,14 @@ void set_floor(const transmatrix& spin, hpcshape& sh) {
qfi.usershape = -1;
}
int shvid(cell *c) {
if(geosupport_football() == 2)
EX int shvid(cell *c) {
if(prod) {
int d;
cell *c1 = product::get_where(c).first;
product::in_underlying_map([&] { d = shvid(c1); });
return d;
}
else if(geosupport_football() == 2)
return pseudohept(c);
else if(geometry == gBinaryTiling)
return c->type-6;