Author: oracle
Date: Wed Jul  9 00:21:41 2008
New Revision: 27860

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27860&view=rev
Log:
Added a comment to ai_manager::reap_ais().


Modified:
    trunk/src/ai.cpp

Modified: trunk/src/ai.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai.cpp?rev=27860&r1=27859&r2=27860&view=diff
==============================================================================
--- trunk/src/ai.cpp (original)
+++ trunk/src/ai.cpp Wed Jul  9 00:21:41 2008
@@ -2330,17 +2330,15 @@
 }
 
 
+// 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 ;


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to