Quick code review to refresh my memory.

This commit is contained in:
Zed A. Shaw 2025-10-09 01:23:01 -04:00
parent ee9f8c7c4b
commit 517de91a5b
8 changed files with 27 additions and 18 deletions

View file

@ -14,9 +14,6 @@ inline void add_neighbors(PointList &neighbors, Matrix &closed, size_t y, size_t
}
}
/*
* Used https://github.com/HenrYxZ/dijkstra-map as a reference.
*/
void Pathing::compute_paths(Matrix &walls) {
INVARIANT();
dbc::check(walls[0].size() == $width,
@ -66,7 +63,6 @@ void Pathing::compute_paths(Matrix &walls) {
}
void Pathing::set_target(const Point &at, int value) {
// FUTURE: I'll eventually allow setting this to negatives for priority
$input[at.y][at.x] = value;
}