From 14172b7c0f5edc707ddcffb9db83d87b22db1aa9 Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 5 Apr 2021 23:33:53 -0400 Subject: [PATCH] Improve readability of report-usage output --- plugins/dwarfvet.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/dwarfvet.cpp b/plugins/dwarfvet.cpp index 473eaa260..a51b8cb83 100644 --- a/plugins/dwarfvet.cpp +++ b/plugins/dwarfvet.cpp @@ -195,8 +195,8 @@ void AnimalHospital::reportUsage(color_ostream &out) { int length_cursor = this->length; for (bool spot : this->spots_in_use) { - if (spot) out.print("t"); - else out.print("f"); + if (spot) out.print("X"); + else out.print("-"); length_cursor--; if (length_cursor < 0) { out.print("\n"); @@ -748,8 +748,7 @@ command_result dwarfvet (color_ostream &out, std::vector & paramet } if ( parameters[a] == "report") { out.print("Current animal hospitals are:\n"); - for (size_t b =0 ; b < world->buildings.all.size(); b++) { - df::building* building = world->buildings.all[b]; + for (df::building *building : df::building::get_vector()) { if (isActiveAnimalHospital(building)) { out.print(" at x1: %d, x2: %d, y1: %d, y2: %d, z: %d\n", building->x1, building->x2, building->y1, building->y2, building->z); }