mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-13 23:18:16 +00:00
fixed the Land of Power in some geometries
This commit is contained in:
parent
350ccd5b76
commit
a1e532d5a0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user