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,7 +1181,8 @@ void giantLandSwitch(cell *c, int d, cell *from) {
break;
case laCaribbean:
if(d == 9 && !euclid) {
if(d == 9) {
if(!euclid) {
if(c->master->alt && c->master->alt->distance <= 2) {
if(!euclid) generateAlts(c->master);
preventbarriers(c);
@ -1201,6 +1202,7 @@ void giantLandSwitch(cell *c, int d, cell *from) {
else
c->wall = waSea;
}
}
if(d == 8 && !euclid) {
int mindist = 9;
for(int i=0; i<c->type; i++) {