Added a comment to ai_manager::reap_ais().

This commit is contained in:
Greg Copeland 2008-07-08 22:21:41 +00:00
parent b0abbdae36
commit d439e1ace7

View file

@ -2330,17 +2330,15 @@ boost::intrusive_ptr<ai_interface> ai_manager::get_ai( std::string ai_algo,
}
// Request each AI to clean up. The number of AIs which performed some type of
// clean up is returned. For now, only the python_ai should return a non-zero value.
int ai_manager::reap_ais()
{
int counter = 0 ;
for( AINameMap::iterator itor = ais.begin() ; itor != ais.end() ; ++itor )
{
// std::cout << "Should reap ai:" << itor->first << ", " << itor->second->manager_reap_ai() << std::endl ;
if( itor->second->manager_reap_ai() )
{
// std::cout << "reaping ai: " << itor->first << std::endl ;
++counter ;
}
++counter ;
}
return counter ;