mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-26 10:00:42 +00:00
setland_randomwalk now takes cheat dest list into account
This commit is contained in:
parent
c63eebc15f
commit
72029b3fbe
@ -2851,7 +2851,7 @@ EX int randomwalk_size = 10;
|
||||
|
||||
EX void setland_randomwalk(cell *c) {
|
||||
if(c->land) return;
|
||||
if(hrand(randomwalk_size) == 0) setland(c, currentlands[hrand(isize(currentlands))]);
|
||||
if(hrand(randomwalk_size) == 0) setland(c, random_land());
|
||||
else {
|
||||
cell *c2 = nullptr;
|
||||
for(int i=0; i<10 && !(c2 && (!disksize || is_in_disk(c2)) && is_in_fractal(c2)); i++)
|
||||
|
Loading…
Reference in New Issue
Block a user