Needed to rewrite the pathing to get this to work. I actually had been using a purposefully broken pathing algorithm from when I was making random maps.
This commit is contained in:
parent
c894f6e094
commit
e92fd2b6f3
10 changed files with 169 additions and 111 deletions
4
map.cpp
4
map.cpp
|
@ -119,7 +119,9 @@ Point Map::center_camera(const Point &around, size_t view_x, size_t view_y) {
|
|||
* in and out.
|
||||
*/
|
||||
bool Map::random_walk(Point &out, bool random, int direction) {
|
||||
return $paths.random_walk(out, random, direction);
|
||||
(void)random;
|
||||
dbc::log("!!!!!!!!!!!!!!!!!!!!!!!!!!!! REWRITE THIS!");
|
||||
return $paths.find_path(out, direction, true) != PathingResult::FAIL;
|
||||
}
|
||||
|
||||
bool Map::INVARIANT() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue