mail[Wesnoth-commits] r33946 - /trunk/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:42:
Author: jhinrichs
Date: Fri Mar 20 23:42:06 2009
New Revision: 33946

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

Modified:
    trunk/src/ai_village.cpp

Modified: trunk/src/ai_village.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai_village.cpp?rev=33946&r1=33945&r2=33946&view=diff
==============================================================================
--- trunk/src/ai_village.cpp (original)
+++ trunk/src/ai_village.cpp Fri Mar 20 23:42:06 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