1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

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

This commit is contained in:
Zeno Rogue 2021-09-30 11:40:30 +02:00
parent 73c16f9586
commit 89696a8e2c

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