diff --git a/landlock.cpp b/landlock.cpp index 078ed67b..1f05d66e 100644 --- a/landlock.cpp +++ b/landlock.cpp @@ -631,11 +631,13 @@ EX eLand getNewLand(eLand old) { if(ls::horodisk_structure() && tortoise::seek()) LIKELY tab[cnt++] = laTortoise; + int attempts = 0; eLand n = old; while(incompatible(n, old) || !isLandIngame(n)) { n = tab[hrand(cnt)]; if(weirdhyperbolic && specialland == laCrossroads4 && isCrossroads(n)) n = laCrossroads4; + attempts++; if(attempts == 2000) break; } return n;