Just don't prevent start points being in walls.
This commit is contained in:
parent
6f952bfd28
commit
243d15c123
2 changed files with 2 additions and 5 deletions
6
map.cpp
6
map.cpp
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue