mail[Wesnoth-commits] r33586 - /trunk/src/ai_move.cpp


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

Header


Content

Posted by shadowm2006 on March 13, 2009 - 01:34:
Author: shadowmaster
Date: Fri Mar 13 01:34:34 2009
New Revision: 33586

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33586&view=rev
Log:
Shut up some "deprecated WML" messages for 1.6 as requested by Ivanovic.

Modified:
    trunk/src/ai_move.cpp

Modified: trunk/src/ai_move.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai_move.cpp?rev=33586&r1=33585&r2=33586&view=diff
==============================================================================
--- trunk/src/ai_move.cpp (original)
+++ trunk/src/ai_move.cpp Fri Mar 13 01:34:34 2009
@@ -525,7 +525,8 @@
                        if(tg->type == target::VILLAGE) {
                                
if(current_team().ai_parameters().has_attribute("scout_village_targetting")) {
                                        rating *= 
lexical_cast_default<int>(current_team().ai_parameters()["scout_village_targetting"],3);
-                                       lg::wml_error << "[ai] the 
'scout_village_targetting' attribute is deprecated, support will be removed 
in version 1.7.0; use 'scout_village_targeting' instead\n";
+                                       // TODO: re-enable next line after 
forking 1.6
+                                       //lg::wml_error << "[ai] the 
'scout_village_targetting' attribute is deprecated, support will be removed 
in version 1.7.0; use 'scout_village_targeting' instead\n";
                                }
                                else {
                                        rating *= 
lexical_cast_default<int>(current_team().ai_parameters()["scout_village_targeting"],3);
@@ -560,7 +561,8 @@
        bool simple_targeting = false;
        if(current_team().ai_parameters().has_attribute("simple_targetting")) 
{
                simple_targeting = 
utils::string_bool(current_team().ai_parameters()["simple_targetting"]);
-               lg::wml_error << "[ai] the 'simple_targetting' attribute is 
deprecated, support will be removed in version 1.7.0; use 'simple_targeting' 
instead\n";
+               // TODO: re-enable next line after forking 1.6
+               //lg::wml_error << "[ai] the 'simple_targetting' attribute is 
deprecated, support will be removed in version 1.7.0; use 'simple_targeting' 
instead\n";
        }
        else {
                simple_targeting = 
utils::string_bool(current_team().ai_parameters()["simple_targeting"]);




Related Messages


Powered by MHonArc, Updated Fri Mar 13 03:00:15 2009