1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-14 18:22:07 +00:00

binary tiling in 3D works

This commit is contained in:
?
2019-02-21 18:47:32 +01:00
committed by Zeno Rogue
parent e73d2f2f22
commit 96e4ff6c9d
6 changed files with 197 additions and 9 deletions
+5 -2
View File
@@ -73,7 +73,7 @@ hrmap_hyperbolic::hrmap_hyperbolic() {
binary::rxcode[1<<16] = &h;
#endif
h.zebraval = 0,
h.c7 = newCell(6, origin);
h.c7 = newCell(DIM == 3 ? 9 : 6, origin);
}
#endif
#if CAP_IRR
@@ -1867,7 +1867,10 @@ int celldistance(cell *c1, cell *c2) {
return 64;
}
#if DIM == 3
if(binarytiling) return binary::celldistance(c1, c2);
#endif
return hyperbolic_celldistance(c1, c2);
}