1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-15 14:27:37 +00:00

crystal:: started working on lands (Camelot done) and distances

This commit is contained in:
Zeno Rogue
2018-12-01 23:53:03 +01:00
parent 000f271552
commit 50f37a6b63
4 changed files with 172 additions and 21 deletions

View File

@@ -2375,7 +2375,7 @@ void setdist(cell *c, int d, cell *from) {
// this fixes the following problem:
// http://steamcommunity.com/app/342610/discussions/0/1470840994970724215/
if(!generatingEquidistant && from && d >= 7 && c->land && !binarytiling && !archimedean) {
if(!generatingEquidistant && from && d >= 7 && c->land && !binarytiling && !archimedean && geometry != gCrystal) {
int cdi = celldist(c);
if(celldist(from) > cdi) {
forCellCM(c2, c) if(celldist(c2) < cdi) {
@@ -2413,7 +2413,8 @@ void setdist(cell *c, int d, cell *from) {
#else
if(true) {
#endif
if(sphere || fulltorus) setLandSphere(c);
if(geometry == gCrystal) crystal::set_land(c);
else if(sphere || fulltorus) setLandSphere(c);
else if(euclid) setLandEuclid(c);
else if(quotient) { setland(c, specialland); setLandQuotient(c); }
else if(weirdhyperbolic) setLandWeird(c);