mail[Wesnoth-commits] r33736 - /trunk/src/formula_ai.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by soliton . de on March 17, 2009 - 01:36:
Author: soliton
Date: Tue Mar 17 01:36:31 2009
New Revision: 33736

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33736&view=rev
Log:
log when falling back to a different AI

Modified:
    trunk/src/formula_ai.cpp

Modified: trunk/src/formula_ai.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/formula_ai.cpp?rev=33736&r1=33735&r2=33736&view=diff
==============================================================================
--- trunk/src/formula_ai.cpp (original)
+++ trunk/src/formula_ai.cpp Tue Mar 17 01:36:31 2009
@@ -1730,6 +1730,7 @@
 {
        if(!formula_) {
                if(master_) {
+                       LOG_AI << "Falling back to default AI.\n";
                        ai_interface* fallback = create_ai("", get_info());
                        fallback->play_turn();
                }
@@ -2036,6 +2037,7 @@
                                        throw 
fallback_ai_to_human_exception();
                                } else
                                {
+                                       LOG_AI << "Explicit fallback to: " << 
fallback_command->key() << std::endl;
                                        ai_interface* fallback = 
create_ai(fallback_command->key(), get_info());
                                        if(fallback) {
                                                fallback->play_turn();




Related Messages


Powered by MHonArc, Updated Tue Mar 17 01:40:28 2009