1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-18 03:58:04 +00:00

regular pattern on 3D Temple of Cthulhu

This commit is contained in:
?
2019-02-22 21:04:47 +01:00
committed by Zeno Rogue
parent 0ea37718f0
commit 6c763d5879
2 changed files with 9 additions and 2 deletions

View File

@@ -87,7 +87,11 @@ namespace binary {
heptagon *build(heptagon *parent, int d, int d1, int t, int side, int delta) {
#else
heptagon *build(heptagon *parent, int d, int d1, int delta) {
int t = 9; const int side = 0;
int t = 9;
int side = 0;
if(d < 4) side = (parent->zebraval * 2 + d) % 5;
if(d == 8) side = ((parent->zebraval-d1) * 3) % 5;
#endif
auto h = buildHeptagon1(tailored_alloc<heptagon> (t), parent, d, hsOrigin, d1);
h->distance = parent->distance + delta;