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


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

Header


Content

Posted by soliton . de on March 06, 2009 - 07:22:
Author: soliton
Date: Fri Mar  6 07:21:57 2009
New Revision: 33365

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33365&view=rev
Log:
allow the usual truth values

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=33365&r1=33364&r2=33365&view=diff
==============================================================================
--- trunk/src/ai_move.cpp (original)
+++ trunk/src/ai_move.cpp Fri Mar  6 07:21:57 2009
@@ -153,7 +153,7 @@
                        {
                                //Support seems to cause the AI to just 'sit 
around' a lot, so
                                //only turn it on if it's explicitly enabled.
-                               
if(current_team().ai_parameters()["support_villages"] == "yes") {
+                               
if(utils::string_bool(current_team().ai_parameters()["support_villages"])) {
                                        double enemy = power_projection(*t, 
enemy_dstsrc);
                                        if (enemy > 0)
                                        {




Related Messages


Powered by MHonArc, Updated Fri Mar 06 17:40:28 2009