Removed the variable limit setting since it's never used and instead just have WALL_PATH_LIMIT.
This commit is contained in:
parent
9abb39a3bf
commit
eb0ca38e30
19 changed files with 50 additions and 58 deletions
6
map.cpp
6
map.cpp
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue