Switched to new logging system

This commit is contained in:
Guillaume Melquiond 2004-09-19 11:30:23 +00:00
parent ba6d09d69f
commit 15a4962a14
2 changed files with 5 additions and 5 deletions

View File

@ -1122,11 +1122,11 @@ bool ai::get_healing(std::map<gamemap::location,paths>& possible_moves, const mo
if(map_.gives_healing(dst) && (units_.find(dst) == units_.end() || dst == u_it->first)) {
const double vuln = power_projection(it.first->first,
enemy_srcdst,enemy_dstsrc);
std::cerr << "found village with vulnerability: " << vuln << "\n";
LOG_AI << "found village with vulnerability: " << vuln << "\n";
if(vuln < best_vulnerability || best_loc == it.second) {
best_vulnerability = vuln;
best_loc = it.first;
std::cerr << "chose village " << (dst.x+1) << "," << (dst.y+1) << "\n";
LOG_AI << "chose village " << (dst.x+1) << "," << (dst.y+1) << "\n";
}
}
@ -1138,7 +1138,7 @@ bool ai::get_healing(std::map<gamemap::location,paths>& possible_moves, const mo
const location& src = best_loc->first;
const location& dst = best_loc->second;
std::cerr << "moving unit to village for healing...\n";
LOG_AI << "moving unit to village for healing...\n";
move_unit(src,dst,possible_moves);
return true;

View File

@ -456,7 +456,7 @@ std::pair<gamemap::location,gamemap::location> ai::choose_move(std::vector<targe
}
}
std::cerr << tg->value << "/" << cur_route.move_left << " = " << rating << "\n";
LOG_AI << tg->value << "/" << cur_route.move_left << " = " << rating << "\n";
if(best_target == targets.end() || rating > best_rating) {
best_rating = rating;
best_target = tg;
@ -465,7 +465,7 @@ std::pair<gamemap::location,gamemap::location> ai::choose_move(std::vector<targe
}
}
std::cerr << "chose target...\n";
LOG_AI << "chose target...\n";
if(best_target == targets.end()) {