1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

fixed a refactoring bug in Caribbean generation

This commit is contained in:
Zeno Rogue 2017-10-12 11:39:22 +02:00
parent 1975069797
commit bf83236863

View File

@ -1181,25 +1181,27 @@ void giantLandSwitch(cell *c, int d, cell *from) {
break;
case laCaribbean:
if(d == 9 && !euclid) {
if(c->master->alt && c->master->alt->distance <= 2) {
if(!euclid) generateAlts(c->master);
preventbarriers(c);
if(d == 9) {
if(!euclid) {
if(c->master->alt && c->master->alt->distance <= 2) {
if(!euclid) generateAlts(c->master);
preventbarriers(c);
int d = celldistAlt(c);
if(d <= 0)
// c->wall = waChasm;
generateTreasureIsland(c);
else
c->wall = waSea;
}
else c->wall = waSea;
}
else {
int d = celldistAlt(c);
if(d <= 0)
// c->wall = waChasm;
generateTreasureIsland(c);
else
c->wall = waSea;
}
else c->wall = waSea;
}
else {
int d = celldistAlt(c);
if(d <= 0)
generateTreasureIsland(c);
else
c->wall = waSea;
}
if(d == 8 && !euclid) {
int mindist = 9;