mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-09-27 21:58:13 +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.
|
// seal entrances to the Land of Power.
|
||||||
if(d == 7 && ctof(c)) {
|
if(d == 7 && ctof(c)) {
|
||||||
bool onwall = false;
|
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;
|
onwall = true;
|
||||||
if(!onwall) for(int i=0; i<c->type; i++) {
|
if(!onwall) for(int i=0; i<c->type; i++) {
|
||||||
cell *c2 = c->move(i);
|
cell *c2 = c->move(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user