From a1e532d5a0d9e49f1e0ef64f663ac9d2a9e0ccd2 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 22 Aug 2018 23:22:43 +0200 Subject: [PATCH] fixed the Land of Power in some geometries --- landgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/landgen.cpp b/landgen.cpp index 86a4ed95..463e0d87 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -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; itype; i++) if(c->move(i) && c->move(i)->land == laBarrier) onwall = true; if(!onwall) for(int i=0; itype; i++) { cell *c2 = c->move(i);