fixed the map generator doing paths that hit the edge which made it look like the map was out of bounds.

This commit is contained in:
Zed A. Shaw 2024-12-28 12:37:19 -05:00
parent 194cc6664b
commit 6b4bc6cc11
5 changed files with 23 additions and 4 deletions

View file

@ -23,7 +23,6 @@ TEST_CASE("pathing", "[builder]") {
matrix::dump("WALLS", map.$walls, 0,0);
println("wall at 0,0=={}", map.$walls[0][0]);
for(matrix::each_cell it{map.$walls}; it.next();) {
if(map.$walls[it.y][it.x] == WALL_VALUE) {
REQUIRE(map.iswall(it.x, it.y) == true);