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:
parent
194cc6664b
commit
6b4bc6cc11
5 changed files with 23 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue