Removed the variable limit setting since it's never used and instead just have WALL_PATH_LIMIT.

This commit is contained in:
Zed A. Shaw 2024-12-05 08:41:10 -05:00
parent 9abb39a3bf
commit eb0ca38e30
19 changed files with 50 additions and 58 deletions

View file

@ -30,15 +30,13 @@ void dump_map(const std::string &msg, Matrix &map, int show_x, int show_y) {
}
Map::Map(size_t width, size_t height) :
$limit(WALL_PATH_LIMIT),
$width(width),
$height(height),
$walls(height, MatrixRow(width, INV_WALL)),
$paths(height, width, WALL_PATH_LIMIT)
$paths(height, width)
{}
Map::Map(Matrix &walls, Pathing &paths, int limit) :
$limit(limit),
Map::Map(Matrix &walls, Pathing &paths) :
$walls(walls),
$paths(paths)
{