mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
fixed a refactoring bug in Caribbean generation
This commit is contained in:
parent
1975069797
commit
bf83236863
28
landgen.cpp
28
landgen.cpp
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user