Results of today's code review session.

This commit is contained in:
Zed A. Shaw 2025-01-05 15:07:30 -05:00
parent 14b3ea7676
commit f35b74f335
21 changed files with 64 additions and 59 deletions

View file

@ -74,17 +74,6 @@ void Pathing::clear_target(const Point &at) {
$input[at.y][at.x] = 1;
}
void Pathing::random_flood(const Point from, std::function<void(Point at, int dnum)> cb) {
// quick hack to try the idea
matrix::each_cell it{$paths};
it.x = from.x;
it.y = from.y;
while(it.next()) {
cb({it.x, it.y}, $paths[it.y][it.x]);
}
}
bool Pathing::INVARIANT() {
using dbc::check;