untrapped Prairie in no_walls

This commit is contained in:
Zeno Rogue 2021-05-01 14:01:09 +02:00
parent 957d1e49a5
commit 605f0209b8
1 changed files with 5 additions and 1 deletions

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
#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++) {
int fval2 = createStep(c->master, bd)->fieldval;
int wd = currfp_gmul(fval2, currfp_inverses(c->fval-1));
@ -1627,6 +1628,9 @@ EX void build_walls(cell *c, cell *from) {
break;
}
}
if(ls::no_walls()) {
buildBarrierNowall(c, getNewLand(c->land));
}
}
#endif