From c2f1f4371cc678cffba9e3560ab1d97bc9681afd Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 22 Sep 2023 11:58:56 +0200 Subject: [PATCH] fixed land generation becoming glitched in standard modes when Lost Mountain or Clearing becomes unlocked --- bigstuff.cpp | 2 +- landlock.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bigstuff.cpp b/bigstuff.cpp index 454de98a..3c3b3e37 100644 --- a/bigstuff.cpp +++ b/bigstuff.cpp @@ -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 diff --git a/landlock.cpp b/landlock.cpp index f7ca2600..e18de90b 100644 --- a/landlock.cpp +++ b/landlock.cpp @@ -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;