mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-09-30 06:50:41 +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;
|
break;
|
||||||
|
|
||||||
case laCaribbean:
|
case laCaribbean:
|
||||||
if(d == 9 && !euclid) {
|
if(d == 9) {
|
||||||
if(c->master->alt && c->master->alt->distance <= 2) {
|
if(!euclid) {
|
||||||
if(!euclid) generateAlts(c->master);
|
if(c->master->alt && c->master->alt->distance <= 2) {
|
||||||
preventbarriers(c);
|
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);
|
int d = celldistAlt(c);
|
||||||
if(d <= 0)
|
if(d <= 0)
|
||||||
// c->wall = waChasm;
|
|
||||||
generateTreasureIsland(c);
|
generateTreasureIsland(c);
|
||||||
else
|
else
|
||||||
c->wall = waSea;
|
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) {
|
if(d == 8 && !euclid) {
|
||||||
int mindist = 9;
|
int mindist = 9;
|
||||||
|
Loading…
Reference in New Issue
Block a user