Fix Desert Wall pre-opened logic for the portal re-factor

This commit is contained in:
aerinon
2020-12-15 12:18:32 -07:00
parent 91b5380e3a
commit 2a05e94970
4 changed files with 6 additions and 2 deletions

View File

@@ -619,7 +619,7 @@ def stonewall_valid(stonewall):
return False # you can get stuck from an entrance
else:
door = entrance.door
if door is not None and door != stonewall and not door.blocked and parent not in visited:
if (door is None or (door != stonewall and not door.blocked)) and parent not in visited:
visited.add(parent)
queue.append(parent)
# we didn't find anything bad