Author: esr
Date: Thu Oct 23 00:54:25 2008
New Revision: 30317

URL: http://svn.gna.org/viewcvs/wesnoth?rev=30317&view=rev
Log:
More AI logging cleanup.

Modified:
    trunk/src/ai.cpp

Modified: trunk/src/ai.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai.cpp?rev=30317&r1=30316&r2=30317&view=diff
==============================================================================
--- trunk/src/ai.cpp (original)
+++ trunk/src/ai.cpp Thu Oct 23 00:54:25 2008
@@ -2405,15 +2405,15 @@
   if( ai_algo.size() )
     {
       AINameMap::const_iterator itor = ais.find(ai_key);
-      std::cout << "ai_manager::get_ai() for algorithm: " << ai_algo << 
std::endl ;
+      LOG_AI << "ai_manager::get_ai() for algorithm: " << ai_algo << std::endl 
;
       if(itor == ais.end())
        {
-         std::cout << "manager did not find AI - creating..." << std::endl ;
+         LOG_AI << "manager did not find AI - creating..." << std::endl ;
          ai_obj = create_ai(ai_algo, ai_info) ;
-         std::cout << "Asking newly created AI if it wants to be managed." << 
std::endl ;
+         LOG_AI << "Asking newly created AI if it wants to be managed." << 
std::endl ;
          if( ai_obj->manager_manage_ai() )
            {
-             std::cout << "AI has requested itself be managed: " << ai_algo << 
std::endl ;
+             LOG_AI << "AI has requested itself be managed: " << ai_algo << 
std::endl ;
              AINameMap::value_type new_ai_pair( ai_key, ai_obj ) ;
              itor = ais.insert(new_ai_pair).first ;
            }
@@ -2421,7 +2421,7 @@
       else
        {
          // AI was found - so return it
-         std::cout << "Reusing managed AI" << std::endl ;
+         LOG_AI << "Reusing managed AI" << std::endl ;
          ai_obj = itor->second ;
        }
     }


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

Reply via email to