fixed land generation becoming glitched in standard modes when Lost Mountain or Clearing becomes unlocked

This commit is contained in:
Zeno Rogue 2023-09-22 11:58:56 +02:00
parent 9e4c883001
commit c2f1f4371c
2 changed files with 3 additions and 3 deletions

View File

@ -2026,7 +2026,7 @@ EX void buildCamelot(cell *c) {
if(c->land == laNone) printf("Camelot\n"); // NONEDEBUG
}
}
else {
else if(ls::hv_structure()) {
setland(c, eLand(altmap::orig_land(c->master->alt->alt)));
}
#endif

View File

@ -567,8 +567,8 @@ EX eLand getNewLand(eLand old, eLand old2 IS(laBarrier)) {
tab[cnt++] = laSnakeNest;
}
if(landUnlocked(laMountain)) tab[cnt++] = laMountain;
if(landUnlocked(laClearing)) tab[cnt++] = laClearing;
if(ls::hv_structure() && landUnlocked(laMountain)) tab[cnt++] = laMountain;
if(ls::hv_structure() && landUnlocked(laClearing)) tab[cnt++] = laClearing;
if(landUnlocked(laTrollheim)) {
if(isTrollLand(old)) LIKELY tab[cnt++] = laTrollheim;