Merge pull request #1505 from pierredavidbelanger/fix_dwarfvet_too_verbose

dwarfvet log only if enabled (fix #1504)
develop
Alan 2020-02-27 18:50:00 -05:00 committed by GitHub
commit 8db94d6114
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

@ -414,7 +414,9 @@ void AnimalHospital::processPatients(color_ostream &out) {
static vector<AnimalHospital*> animal_hospital_zones;
void delete_animal_hospital_vector(color_ostream &out) {
out.print("Clearing all animal hospitals\n");
if (dwarfvet_enabled) {
out.print("Clearing all animal hospitals\n");
}
for (vector<AnimalHospital*>::iterator animal_hospital = animal_hospital_zones.begin(); animal_hospital != animal_hospital_zones.end(); animal_hospital++) {
delete (*animal_hospital);
}