Fixed up dbc.cpp so now just use it everywhere. I next need to find a way to pass that to format automatically.

This commit is contained in:
Zed A. Shaw 2025-03-17 23:53:58 -04:00
parent 2baa044695
commit a6d83db20c
10 changed files with 25 additions and 21 deletions

View file

@ -41,7 +41,7 @@ Pathing compute_paths(gui::FSM& fsm) {
}
void Autowalker::log(std::string msg) {
fmt::println(">>> AUTOWALK: {}", msg);
dbc::log(fmt::format(">>> AUTOWALK: {}", msg));
fsm.$status_ui.log(msg);
}
@ -254,8 +254,7 @@ void Autowalker::handle_player_walk(ai::State& start, ai::State& goal) {
send_event(gui::Event::STAIRS_DOWN);
} else {
close_status();
log("Autowalk has a bug. Unknown action.");
fmt::println("Unknown action: {}", action.name);
dbc::log(fmt::format("Unknown action: {}", action.name));
}
}