make room at office entrance
This commit is contained in:
parent
173494c568
commit
e150be9e77
1 changed files with 7 additions and 0 deletions
|
@ -81,6 +81,13 @@ convertTileToImg mat = fromLists conversion
|
|||
_ ->
|
||||
error "unexpected number if neighbouring walls"
|
||||
)
|
||||
Offi
|
||||
| any
|
||||
(\(rr, cc) -> M.safeGet (irow + rr) (icol + cc) mat == Just Door)
|
||||
((,) <$> [-1 .. 1] <*> [-1 .. 1]) ->
|
||||
Just ImgEmpty
|
||||
| otherwise ->
|
||||
Nothing
|
||||
_ ->
|
||||
Nothing
|
||||
|
||||
|
|
Loading…
Reference in a new issue