1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 18:54:48 +00:00

ls:: more careful incompatibility handling in voronoi

This commit is contained in:
Zeno Rogue 2023-09-18 11:10:41 +02:00
parent cab3cfe2f9
commit 66ea0804cf

View File

@ -592,7 +592,7 @@ EX eLand getNewLand(eLand old, eLand old2 IS(laBarrier)) {
} }
eLand n = old; eLand n = old;
while(incompatible(n, old) || !isLandIngame(n)) { while(incompatible(n, old) || incompatible(n, old2) || !isLandIngame(n)) {
n = tab[hrand(cnt)]; n = tab[hrand(cnt)];
if(weirdhyperbolic && specialland == laCrossroads4 && isCrossroads(n)) if(weirdhyperbolic && specialland == laCrossroads4 && isCrossroads(n))
n = laCrossroads4; n = laCrossroads4;