mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-09-27 13:48:15 +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;
|
set<cell*> visited;
|
||||||
|
|
||||||
bool restrict(cell *c, const shiftmatrix& V) {
|
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;
|
if(visited.count(c)) return false;
|
||||||
|
|
||||||
visited.insert(c);
|
visited.insert(c);
|
||||||
|
Loading…
Reference in New Issue
Block a user