1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

pseudohept in Field534

This commit is contained in:
Zeno Rogue 2019-03-21 19:23:27 +01:00
parent ac7c902f0b
commit 7e65ea23ea
2 changed files with 3 additions and 1 deletions

View File

@ -1297,7 +1297,7 @@ bool pseudohept(cell *c) {
#endif
#if MAXMDIM == 4
if(DIM == 3) {
if(quotient) return false;
if(geometry == gField435) return false;
else if(euclid) return euclid3::pseudohept(c);
else return reg3::pseudohept(c);
}

View File

@ -827,6 +827,8 @@ bool pseudohept(cell *c) {
// chessboard pattern in 534
if(geometry == gSpace534)
return c->master->distance & 1;
if(geometry == gField534)
return hr::celldistance(c, currentmap->gamestart()) & 1;
if(hyperbolic) {
heptagon *h = m->reg_gmatrix[c->master].first;
return (h->zebraval == 1) && (h->distance & 1);