1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 06:27:17 +00:00

separated function set_land_for_geometry

This commit is contained in:
Zeno Rogue 2020-04-05 10:56:50 +02:00
parent b6ecc15e1a
commit 548f1d3c1e

View File

@ -2733,6 +2733,24 @@ EX void setland_randomwalk(cell *c) {
}
}
EX void set_land_for_geometry(cell *c) {
if(0);
else if(chaosmode > 1) ;
#if CAP_CRYSTAL
else if(cryst) crystal::set_land(c);
#endif
#if MAXMDIM == 4
else if(euc::in(3)) euc::set_land(c);
#endif
else if(hybri) setLandHybrid(c);
else if(sphere || (euclid && bounded)) setLandSphere(c);
else if(euclid) setLandEuclid(c);
else if(quotient) { setland(c, specialland); setLandQuotient(c); }
else if(sol) setLandSol(c);
else if(nil) setLandNil(c);
else if(weirdhyperbolic) setLandWeird(c);
}
EX void setdist(cell *c, int d, cell *from) {
if(c->mpdist <= d) return;
@ -2816,21 +2834,7 @@ EX void setdist(cell *c, int d, cell *from) {
#else
if(true) {
#endif
if(0);
else if(chaosmode > 1) ;
#if CAP_CRYSTAL
else if(cryst) crystal::set_land(c);
#endif
#if MAXMDIM == 4
else if(euc::in(3)) euc::set_land(c);
#endif
else if(hybri) setLandHybrid(c);
else if(sphere || (euclid && bounded)) setLandSphere(c);
else if(euclid) setLandEuclid(c);
else if(quotient) { setland(c, specialland); setLandQuotient(c); }
else if(sol) setLandSol(c);
else if(nil) setLandNil(c);
else if(weirdhyperbolic) setLandWeird(c);
set_land_for_geometry(c);
}
// if(chaosmode) setland(c, getCLand(c));