rogueviz:: weirdmaze:: option atleast == -1

This commit is contained in:
Zeno Rogue 2021-09-30 11:40:30 +02:00
parent 73c16f9586
commit 89696a8e2c
1 changed files with 6 additions and 0 deletions

View File

@ -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);