mail[Wesnoth-commits] r33947 - /branches/1.6/src/ai_village.cpp


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

Header


Content

Posted by joerg . hinrichs on March 20, 2009 - 23:46:
Author: jhinrichs
Date: Fri Mar 20 23:46:13 2009
New Revision: 33947

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33947&view=rev
Log:
Backport to 1.6: Revert one of suokko's AI changes that was overlooked 
before. 

Modified:
    branches/1.6/src/ai_village.cpp

Modified: branches/1.6/src/ai_village.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/src/ai_village.cpp?rev=33947&r1=33946&r2=33947&view=diff
==============================================================================
--- branches/1.6/src/ai_village.cpp (original)
+++ branches/1.6/src/ai_village.cpp Fri Mar 20 23:46:13 2009
@@ -349,8 +349,8 @@
                const unit& un = u->second;
                //FIXME: suokko turned this 2:1 to 1.5:1.0.
                //and dropped the second term of the multiplication.  Is that 
better?
-               const double threat_multipler = (current_loc == 
leader_loc?2:1) * current_team().caution() * 10;
-               if(un.hitpoints() < 
(threat_multipler*threat*2*un.defense_modifier(map_.get_terrain(current_loc)))/100)
 {
+               //const double threat_multipler = (current_loc == 
leader_loc?2:1) * current_team().caution() * 10;
+               if(un.hitpoints() < 
(threat*2*un.defense_modifier(map_.get_terrain(current_loc)))/100) {
                        continue;
                }
 




Related Messages


Powered by MHonArc, Updated Sat Mar 21 00:00:38 2009