diff --git a/map.cpp b/map.cpp index 26703d9..69821c5 100644 --- a/map.cpp +++ b/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]; diff --git a/status.txt b/status.txt index 19a527c..01ad54e 100644 --- a/status.txt +++ b/status.txt @@ -2,4 +2,5 @@ TODO: * Figure out how to render color fonts from FTUI. * Dynamically determine the font vs. screensize to get an exact FTXUI screen size. +* Write a test that generates a ton of maps then confirms there's a path from one room to every other room? * Lua integration?