1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-20 11:54:48 +00:00

untrapped Prairie in no_walls

This commit is contained in:
Zeno Rogue 2021-05-01 14:01:09 +02:00
parent 957d1e49a5
commit 605f0209b8

View File

@ -1618,7 +1618,8 @@ EX void build_walls(cell *c, cell *from) {
else if(!nice_walls_available()) ; // non-Nowall barriers not implemented yet in weird hyperbolic else if(!nice_walls_available()) ; // non-Nowall barriers not implemented yet in weird hyperbolic
#if CAP_FIELD #if CAP_FIELD
else if(c->land == laPrairie && c->LHU.fi.walldist == 0 && !euclid && ls::nice_walls()) { else if(c->land == laPrairie && c->LHU.fi.walldist == 0 && !euclid) {
if(ls::nice_walls())
for(int bd=0; bd<7; bd++) { for(int bd=0; bd<7; bd++) {
int fval2 = createStep(c->master, bd)->fieldval; int fval2 = createStep(c->master, bd)->fieldval;
int wd = currfp_gmul(fval2, currfp_inverses(c->fval-1)); int wd = currfp_gmul(fval2, currfp_inverses(c->fval-1));
@ -1627,6 +1628,9 @@ EX void build_walls(cell *c, cell *from) {
break; break;
} }
} }
if(ls::no_walls()) {
buildBarrierNowall(c, getNewLand(c->land));
}
} }
#endif #endif