ls:: fixed Land of Storms in Horodisk and Voronoi

This commit is contained in:
Zeno Rogue 2023-12-13 21:47:06 +01:00
parent 5c24213092
commit ed8b7d5d1d
1 changed files with 13 additions and 3 deletions

View File

@ -1440,13 +1440,23 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
c->wall = waSandstone;
}
for(int i=0; i<c->type; 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; i<c->type; 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; i<c->type; 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;