mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 13:07:16 +00:00
rogueviz:: weirdmaze:: option atleast == -1
This commit is contained in:
parent
73c16f9586
commit
89696a8e2c
@ -27,6 +27,12 @@ int atleast = 1;
|
||||
set<cell*> visited;
|
||||
|
||||
bool restrict(cell *c, const shiftmatrix& V) {
|
||||
|
||||
if(atleast == -1) {
|
||||
c->wall = c->type == 3 ? waWaxWall : waNone;
|
||||
return false;
|
||||
}
|
||||
|
||||
if(visited.count(c)) return false;
|
||||
|
||||
visited.insert(c);
|
||||
|
Loading…
Reference in New Issue
Block a user