mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-04-26 18:51:21 +00:00
dual tilings
This commit is contained in:
17
cell.cpp
17
cell.cpp
@@ -796,14 +796,25 @@ cell *createMov(cell *c, int d) {
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
else if(PURE && archimedean) {
|
||||
if(arcm::id_of(c->master) <= arcm::current.N * 2) {
|
||||
else if(archimedean && PURE) {
|
||||
if(arcm::id_of(c->master) < arcm::current.N * 2) {
|
||||
heptspin hs = heptspin(c->master, d) + wstep + 2 + wstep + 1;
|
||||
c->c.connect(d, hs.at->c7, hs.spin, hs.mirrored);
|
||||
}
|
||||
else c->c.connect(d, c, d, false);
|
||||
}
|
||||
else if(PURE || archimedean) {
|
||||
else if(archimedean && DUAL) {
|
||||
if(arcm::id_of(c->master) >= arcm::current.N * 2) {
|
||||
heptagon *h2 = createStep(c->master, d*2);
|
||||
int d1 = c->master->c.spin(d*2);
|
||||
c->c.connect(d, h2->c7, d1/2, false);
|
||||
}
|
||||
else {
|
||||
printf("bad connection\n");
|
||||
c->c.connect(d,c,d,false);
|
||||
}
|
||||
}
|
||||
else if(archimedean || PURE) {
|
||||
heptagon *h2 = createStep(c->master, d);
|
||||
c->c.connect(d, h2->c7,c->master->c.spin(d),false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user