fixed the Land of Power in some geometries

This commit is contained in:
Zeno Rogue 2018-08-22 23:22:43 +02:00
parent 350ccd5b76
commit a1e532d5a0
1 changed files with 1 additions and 1 deletions

View File

@ -513,7 +513,7 @@ void giantLandSwitch(cell *c, int d, cell *from) {
// seal entrances to the Land of Power.
if(d == 7 && ctof(c)) {
bool onwall = false;
for(int i=0; i<7; i++) if(c->move(i) && c->move(i)->land == laBarrier)
for(int i=0; i<c->type; i++) if(c->move(i) && c->move(i)->land == laBarrier)
onwall = true;
if(!onwall) for(int i=0; i<c->type; i++) {
cell *c2 = c->move(i);