From ed8b7d5d1d6ac201d79e908678998d10d517ddae Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 13 Dec 2023 21:47:06 +0100 Subject: [PATCH] ls:: fixed Land of Storms in Horodisk and Voronoi --- landgen.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/landgen.cpp b/landgen.cpp index ee0512b7..bb7f251f 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -1440,13 +1440,23 @@ EX void giantLandSwitch(cell *c, int d, cell *from) { c->wall = waSandstone; } - for(int i=0; itype; i++) - if(c->move(i) && c->move(i)->land != laStorms && c->move(i)->land != laNone) - c->wall = waNone; + if(ls::horodisk_structure()) { + if(celldistAlt(c) >= horodisk_from) c->wall = waNone; + } + else if(!ls::voronoi_structure()) { + for(int i=0; itype; i++) + if(c->move(i) && c->move(i)->land != laStorms && c->move(i)->land != laNone) + c->wall = waNone; + } } if(d == BARLEV && randstorm) { c->landparam = hrand(1000000); } + if(d == 7 && ls::voronoi_structure()) { + for(int i=0; itype; i++) + if(c->move(i) && c->move(i)->land != laStorms) + c->wall = waNone; + } if(d == BARLEV-1 && randstorm) { /* static int stormlevel, stormgroup; if(!stormlevel) stormgroup = 0;