Just don't prevent start points being in walls.

This commit is contained in:
Zed A. Shaw 2024-10-04 17:09:28 -04:00
parent 6f952bfd28
commit 243d15c123
2 changed files with 2 additions and 5 deletions

View file

@ -180,11 +180,7 @@ bool Map::neighbors(Point &out, bool greater) {
int zero_i = -1;
int cur = $paths[out.y][out.x];
if(cur == 1000) {
// BUG: sometimes the generation clips a door and we
// start in a wall
return false;
}
// BUG: sometimes cur is in a wall so finding neighbors fails
for(int i = 0; i < 4; ++i) {
Point dir = dirs[i];