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