fixed Orb of the Warp destroyed while refactoring

This commit is contained in:
Zeno Rogue
2019-09-12 22:42:59 +02:00
parent 5b87088ade
commit f507b7cf55
8 changed files with 18 additions and 15 deletions
+2 -2
View File
@@ -1727,7 +1727,7 @@ void giantLandSwitch(cell *c, int d, cell *from) {
c->wall = waSmallTree;
int q = 0;
if(BITRUNCATED && !chaosmode && !weirdhyperbolic) for(int i=0; i<c->type; i++)
if(c->move(i) && !isWarped(c->move(i)->land) && c->move(i)->land != laCrossroads4)
if(c->move(i) && !isWarpedType(c->move(i)->land) && c->move(i)->land != laCrossroads4)
q++;
if(q == 1) c->wall = waWarpGate;
}
@@ -1736,7 +1736,7 @@ void giantLandSwitch(cell *c, int d, cell *from) {
c->wall = waSea;
int q = 0;
if(BITRUNCATED && !chaosmode) for(int i=0; i<c->type; i++)
if(c->move(i) && !isWarped(c->move(i)->land)) q++;
if(c->move(i) && !isWarpedType(c->move(i)->land)) q++;
if(q == 1) c->wall = waWarpGate;
}
}