From 89696a8e2c494b5f09f117e1235026a1aa19c9b9 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 30 Sep 2021 11:40:30 +0200 Subject: [PATCH] rogueviz:: weirdmaze:: option atleast == -1 --- rogueviz/weirdmaze.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rogueviz/weirdmaze.cpp b/rogueviz/weirdmaze.cpp index ca8eae4e..0eab41d8 100644 --- a/rogueviz/weirdmaze.cpp +++ b/rogueviz/weirdmaze.cpp @@ -27,6 +27,12 @@ int atleast = 1; set 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);